Label Usage

Source: Internet
Author: User
Tags config include
js| detailed <jsp-config> includes <taglib> and <jsp-property-group> two child elements.

Where <taglib> elements already exist in JSP 1.2, <jsp-property-group> is the new element of JSP 2.0.
The <jsp-property-group> elements are mainly eight child elements, respectively:

1.<description&gt: A description of the setting;
2.&LT;DISPLAY-NAME&GT: Set the name;
3.&LT;URL-PATTERN&GT: The range that the setting value affects, for example:/ch2 or/*.jsp;
4.<el-ignored&gt: If True, indicates that El syntax is not supported;
5.<scripting-invalid&gt: If True, indicates that <% scripting%> syntax is not supported;
6.&LT;PAGE-ENCODING&GT: Set the code of JSP Web page;
7.<include-prelude&gt: Sets the head of the JSP page, with the extension. JSPF;
8.&LT;INCLUDE-CODA&GT: Sets the end of the JSP Web page with the extension. JSPF.


A simple <jsp-config> element complete configuration:

<jsp-config>
<taglib>
<taglib-uri>Taglib</taglib-uri>
<taglib-location>/WEB-INF/tlds/MyTaglib.tld</taglib-location>
</taglib>
<jsp-property-group>
<description>special Property Group for JSP Configuration JSP example.</description>
<display-name>JSPConfiguration</display-name>
<url-pattern>/jsp/* </url-pattern>
<el-ignored>true</el-ignored>
<page-encoding>GB2312</page-encoding>
<scripting-invalid>true</scripting-invalid>
<include-prelude>/include/prelude.jspf</include-prelude>
<include-coda>/include/coda.jspf</include-coda>
</jsp-property-group>
</jsp-config>

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.