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.xmlfile, set theis-xmlelement of thejsp-property-groupelement to true.- Use a Java Servlet Specification version 2.4
web.xmlfile and give your JSP document the.jspxextension.- Include a
jsp:rootelement in your JSP document. This method is backward-compatible with JSP 1.2.