What I was trying to say is that the following servlet declaration and mapping in the default-web.xml of GlassFish:
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.jsp</url-pattern>
<url-pattern>*.jspx</url-pattern>
</servlet-mapping>
is a GlassFish container implementation detail. This is how GlassFish maps any requests for a resource with a suffix of ".jsp" or ".jspx" to its JSP container, whose entry point is implemented by this servlet:
org.apache.jasper.servlet.JspServlet
If you want additional resources (e.g., those with a suffix of ".xyz) in your webapp to be considered as JSP pages, the standard way of doing that is to declare a <jsp-property-group> in your web.xml, like this:
<jsp-property-group>
<url-pattern>*.xyz</url-pattern>
</jsp-property-group>
instead of leveraging the mapping to the container-specific org.apache.jasper.servlet.JspServlet declared in GlassFish's default-web.xml.
Jan
[Message sent by forum member 'jluehe' (jluehe)]
http://forums.java.net/jive/thread.jspa?messageID=273546