js| Tutorials | detailed | Object
Nine kinds of objects of JSP I am Brief:PageApplicationRequestResponseSessionConfigOutPageContextPage
ResponseResponse.setheader ("Pragma", "No-cache");Response.setheader ("Cache-control",
Js
JSP and javabean Although you can put a large chunk of program code in a small instruction file, most Java program code belongs to reusable components called JavaBean. JavaBean are like ActiveX controls: They provide known functionality and
js| Objects | Built-in objects
(1) HttpServletRequest class's Request object Function: Represents the requesting object, which is primarily used to accept data that the client transmits to the server side through the HTTP protocol connection. (2
Js
1. Download and install Tomcat5.5
2. Download and install the Tomcat for Eclipse plug-in.Unzip the downloaded plugin into Eclipse's plugins directory.When you open eclipse, choose Windows-preferences, which will have a tomcat bar inside.Tomcat
JS Although you can put a large chunk of program code in a small instruction file, most Java program code belongs to reusable components called JavaBean. JavaBean are like ActiveX controls: They provide known functionality and are designed to be
js| Program | Programmers on the Internet to see a lot of questions about how to learn JSP, just on the internet to see an article on the learning JSP, on the pick of a part of the translation over, I hope to learn a little guidance jsp.
A common
js| function
Author: He Zhiqiang [hhzqq@21cn.com]
Date: 2000-09-19
Version: 1.0
Functions: JSP routines-defining functions in a JSP
--%>
String Hello () {
Return "Hello, friend, Welcome to enter the world of JSP, ^_^";
}
%>
js| syntax
HTML annotation
Displays a comment on the client.
JSP syntax
]-->
Example 1
Generate the same data as above in the client's HTML source code:
Example 2
-->
Displayed in the client's HTML source code as:
Js|servlet The following code fragment demonstrates a servlet that illustrates (instantiates) a bean and initializes it with the form data sent by the browser. The bean is then added to the request, which is sent to the JSP page (bean1.jsp), which
js| process Now I will build the JSP platform process.
I'm using Windows2000 professional+jdk+tomcat.
Build the JSP platform:
1. JDK Download and install:
Step One: Enter the Sun company Java JDK 1.4 version of the free installation program,
The JS example is just a simple login test.
The JSP invokes the action of struts and then invokes the DAO call in EJB,EJB in the action hibernate, using the JBoss database connection pool.
Database is MySQL.
The package has Test.sql
js| Page One, preface
From a website, see a "Grab page" code, feel a little meaning, but did not provide the source code, so, they want to write a, in fact, the code is relatively simple.
Second, the Code
String Scurrentline;
String
JS The following code successfully tested, directly copied into the JSP that can run
Test by Liboy
int width=400;
int height= 400;
BufferedImage image = new BufferedImage (width, height, bufferedimage.type_int_rgb);
Graphics g =
JS One, preface
For starters, it's a good choice to implement JSP and Servlet,tomcat. Tomcat is a product of the Apache organization, and Sun's support for it is pretty good.
Second, download, install
Download address for Java official site:
Js
screen.width-300) {this.width = screen.width-300}; "Border=0 dypop=" click to open this picture ">
After adding Filter Properties dialog box do not turn off, select the Home Directory tab click below to configure the following figure
screen.width-
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service