]
This is a complete Servlet and JSP tutorial, which contains a large number of practical materials and examples. It is recommended by cidao studio. The full text consists of 13 chapters, including Servlet and JSP features, installation and configuration development, runtime environment, form data processing, HTTP Request Header, response status processing, access CGI variables, session status, JSP script elements, commands, actions, and so on. For details, see "directory".
Directory
Author: Cactus Studio
Contents
1. servlet and JSP Overview
1.1 assumervlet and Its Features
1.2 JSP and Its Features
2. Set the development and running environment
2.1 install Servlet and JSP development tools
2.2 install a web server supporting Servlet
3. The first Servlet
3.1 basic servlet Structure
3.2 simple servlet for outputting plain text
3.2.1 helloworld. Java
3.2.2 servlet compilation and Installation
3.2.3 run Servlet
3.3 HTML servlet output
3.4 HTML tool Functions
4. process form data
4.1 overview of form data
4.2 Example: read three form variables
4.3 instance: Output all form data
5. Read the HTTP Request Header
5.1 HTTP Request Header Overview
5.2 read request headers in Servlet
5.3 instance: Output all request headers
Vi. Access CGI variables
6.1 CGI variable Overview
6.2 servlet equivalent representation of Standard CGI variables
6.3 instance: Read CGI variables
VII. Http response status
Status 7.1 Code Overview
7.2 set status code
7.3 http1.1 status code and its meaning
7.4 instance: Access Multiple Search Engines
8. Set the HTTP Response Header
8.1 HTTP Response Header Overview
8.2 common response headers and their meanings
8.3 instance: the page is automatically refreshed when the content changes
9. Process cookies
9.1 cookie Overview
9.2 servlet cookie API
9.2.1 create a cookie
9.2.2 read and set cookie attributes
9.2.3 set cookie in response header
9.2.4 read the cookie stored on the client
9.3 cookie tool Functions
9.3.1 obtain the cookie value of the specified name
9.3.2 automatically saved cookies
9.4 instance: Custom Search Engine interface 10. session Status
10.1 session status overview
10.2 session status tracking API
10.2.1 view the session object of the current request
10.2.2 View session-related information
10.2.3 save data in the Session Object
10.3 instance: displays session information
11. jsp and syntax Overview
11.1 Overview
11.2 JSP syntax summary table
11.3 about template text (static html)
12. script elements, commands, and predefined Variables
12.1 JSP script elements
12.1.1 JSP expression
12.1.2 JSP scriptlet
12.1.3 JSP Declaration
12.2 JSP commands
12.2.1 page command
12.2.2 include command
12.3 instance: Application of script elements and commands
12.4 JSP predefined Variables
13. jsp action
13.1 JSP: include action
13.2 JSP: usebean action
13.3 further description of JSP: usebean
13.4 JSP: setproperty action
13.5 JSP: getproperty action
13.6 JSP: forward action
13.7 JSP: plugin action
Appendix: JSP comments and character reference conventions
Note: Source: servlets and assumerver pages