JSP: Include tag

Source: Internet
Author: User

<JSP: Include>

It is used to include static and dynamic resources on the current page. Once the contained page is executed, request processing continues on the call page. the contained page cannot change the response status code or set the header, which prevents calls to methods like setcookie (). Any calls to these methods will be ignored. this constraint is used in javax. servlet. the constraints imposed on the include () method of the dispatcher class of the request are the same.

<JSP: Include> two attributes are available: page and flush:

Page: contains the relative path of the Resource

Flush: This attribute is optional. If it is true, when the page output uses a buffer, refresh the buffer before the inclusion operation. The default value is false.

<JSP: Include> You can include one or more <JSP: param> In the content to provide parameter information for the contained page. the contained page can access the request object, which contains the original parameters and new parameters specified by the <JSP: param> element. if the parameter name is the same, the original value remains unchanged, and the new value has a higher priority than the existing value.

<JSP: Include> and include:

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.