JSP MU class network stage user Login Small example (without database)

Source: Internet
Author: User

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)

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.