Implicit objects in JSP

Source: Internet
Author: User

This article briefly introduces the bank objects in JSP:

1. pagecontext

2. pagination, requestscope, sessionscope, applicationscope

3. Param, paramvalues

4. header, headervalues

5. Cookie

6. initparam

1. pagecontext: http://download.oracle.com/javaee/1.4/api/javax/servlet/jsp/PageContext.html#getRequest%28%29

2. pagination, requestscope, sessionscope, applicationscope

These objects are used to access the values of variables within the corresponding range.

3. Param and paramvalues

Extract the value from the rerquest object.

4. header, headervalues

Obtain the header information in the request.

5. Cookie

6. initparam

Obtain custom parameters in Web. xml. For example, define in the web. xml file:

Code:

<Context-param> <br/> <description> the author of the website </description> <br/> <param-Name> developer </param-Name> <br/> <param-value> jefferyxu </param-value> <br/> </context-param>

How to use it?

<Body> <br/> the developer :$ {initparam. developer} <br/> </body>

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.