Tomcat JSP extension

Is it possible to reconfigure Tomcat in a way that make us possible to rename the JSP files to another extension e.g. *.jps instead of *.jsp?
[148 byte] By [Ehsuna] at [2007-11-27 1:30:19]
# 1

In the conf/web.xml file look for the following llnes

<!-- The mapping for the JSP servlet -->

<servlet-mapping>

<servlet-name>jsp</servlet-name>

<url-pattern>*.jsp</url-pattern>

</servlet-mapping>

<servlet-mapping>

<servlet-name>jsp</servlet-name>

<url-pattern>*.jspx</url-pattern>

</servlet-mapping>

These lines map the jsp and jspx extensions to the JSP compiler. You can add or edit these lines to use any extension that you want including html or asp. You can also do this in the web application specific web.xml file to localize the changes to an single application.

tolmanka at 2007-7-12 0:31:13 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Thanks for nice and complete answer!
Ehsuna at 2007-7-12 0:31:13 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...