This is version 1. It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]

<jsp-property-group>

This sub-element of <jsp-config> defines a collection of properties that apply to one or more JSP pages.

Note that on Tomcat, only 1 <url-pattern> tag is permitted per <jsp-property-group>. If more than 1 is provided, only the final one will be used.

Multiple <jsp-property-group> tags may be included in sequence, to define separate sets of JSP files.

Using <jsp-property-group> to include a header and footer JSP fragment

<jsp-property-group>
	<url-pattern>*.jsp</url-pattern>
	<include-prelude>/WEB-INF/jspf/header.jspf</include-prelude>
	<include-coda>/WEB-INF/jspf/footer.jspf</include-coda>
</jsp-property-group>
  • This will include the JSP specified at the beginning and end of each JSP page. It is equivelant to using an include directive such as <%@ include file="relativeFileName" %> at the top and bottom of the JSP.
  • Preludes and codas follow the same rules as statically included JSP segments. In particular, start tags and end tags must appear in the same file.

Child-elements:

navigation
metawerx specific
search
Share
tools
help

referring pages

Share