Download
FAQ History |
API
Search Feedback |
Identifying the JSP Document to the Container
A JSP document must be identified as such to the Web container so that the container interprets it as an XML document. There are three ways to do this:
- In your application's
web.xml
file, set theis-xml
element of thejsp-property-group
element to true. Step 17. in The Example JSP Document explains how to do this if you are usingdeploytool
to build the application WAR file.- Use a Java Servlet Specification version 2.4
web.xml
file and give your JSP document the.jspx
extension.- Include a
jsp:root
element in your JSP document. This method is backward-compatible with JSP 1.2.
Download
FAQ History |
API
Search Feedback |
All of the material in The J2EE(TM) 1.4 Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.