JSP Note 1

Source: Internet
Author: User

4. jsp will eventually be converted to servlet for execution.
5. jsp declaration format: <%! Int A = 3 ;%>, script segment format: <% int B = 3 ;%>, when the server converts JSP to servlet, will convert the Declaration in JSP to the class
Member variable, and the script segment is converted into a local variable in the method. servlet is a single instance, so that the value of the member variable is only one, and each user will access it, the value in the script segment is a local variable. each user has a copy of each variable during access, which does not affect each other.
6. jsp inclusion (include)
7. <JSP: Forward> command is used to redirect to the page. AllCodeThere is no chance to execute it, because the page process has switched to another page.


8. The getparameter method is a special case of the getparametervalues method, indicating the Request Parameter

There is only one value. If there are multiple request parameter values, use the getparametervalues method. In case of multiple check boxes, you must use the getparametervalues method to obtain the values of multiple check boxes selected by the user.

Related Article

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.