Identifying the JSP Document to the Container
In your application’s web.xml file, set the is-xml element of the jsp-property-group element to true.
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.