Home


JSP include

The basic mechanism is to use a <jsp:include> with a PAGE attribute naming the page to be included, and end with </jsp:include>.

A flush attribute is also required, and it must have the value "true". Once you use an include in your JSP, the contents of the output are written. Therefore, you can no longer do anything that involves sending HTTP headers, such as changing content type or transferring control using an HTTP redirect request.

Examples of jsp:include and includes in JSTL and in Struts are provided in section 5.5, DynaCache and JSP.

+

Search Tips   |   Advanced Search