Learning Path:
1.Servlet Introduction
2.Servlet Foundation
3. Forms Processing
4. Request header Information
5. Response header Information
6.cookie
7.session
8.scope:
Servlet Context Global Variables
Http Session Variable
Http Servlet Request Variable
9.Filter
Filter is a special servlet whose core function, Dofilter (), is executed automatically when accessing a URL resource, such as solving a character encoding problem
10.Listener
Divided into {Servletcontextlistener,httpsessionlistener,servletrequestlistener} according to scope, such as solving user's online counting problem
11.ResourceAccess
Four ways to invoke the servlet:
1,url;2, Hyperlink; 3, submit form; 4,js Script
How to submit a form:
1,get, the request parameter is displayed in the URL
2,post, Hidden and not limited by size
The difference between forwarding and redirection:
1, the request forwarding address bar is unchanged;
2, request redirect change Address bar URL and do not pass parameters;
Methods for persisting the state of an object:
1,cookie;2,session
Java Advanced Application Development servlet