GetAttribute and setattribute are used together, and getparameter is used to obtain parameters such as request.
The web is the use of the request/response architecture, and request and response are the corresponding two objects generated on the server side, request can get the parameters and related information that the client passes, and the response is to respond to the client related pages and information.
Request.getrequestdispatcher (). Forward (Request.response) This statement means that the client's request is diverted (forward) to the page or link of the parameter definition in the Getrequestdispatcher () method.
The popular point is that when a client requests to this page, does not do the processing or does not finish, the request is forwarded to another page processing, and then respond to the client
Request.getrequestdispatcher (). Forward (Request.response) is a forward
The information of the page submitting the request is passed to the forwarded page;
Request and response are two of the 8 objects that are built into a servlet
You can use this method when you want to jump to a page but you need to use some information from the previous page.
When you want to jump to the page and do not need to use the previous page information, you can choose to use redirect (redirect)
JSP MU class network stage user Login Small example (without database)