You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Shelly Dhiman <sh...@is2inc.com> on 2001/04/27 03:07:43 UTC

Can tomcat treat(compile and execute) any arbritraty file extension as jsp

Hi:

I want to know in tomcat is it possible to treat any other file
extension as jsp.
I saved a .jsp file as .phj and i hace done the servlet mapping in
web.xml
like
<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.phj</url-pattern>
</servlet-mapping>

BUt when i try to open that page using browser it shows me text of that
phj file.
Do i have to do a mime-mapping, if yes then how

Any help on this would be appreciated.

Thanks
Shelly