Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

RE: Processing .html files like JSPs

Halstead, Chris

2003-08-20


Look for the line '<!-- The mapping for the JSP servlet -->' in your default web.xml and add this underneath:

<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>

A better solution of course would be to rename the files so that they have a .jsp extension...

-chris

> -----Original Message-----
> From: rmusser@(protected)]
> Sent: Wednesday, August 20, 2003 12:09 PM
> To: tomcat-user@(protected)
> Subject: Processing .html files like JSPs
>
>
> In the app I'm working on there's a number JSP files that
> actually have the extension .html. Is there a way to
> configure Tomcat to treat these files just as if they had the
> standard .jsp extension, or do I need to rely on Apache rewrite rules?
>
> I'm using Tomcat 4.1.27 on Linux.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail: tomcat-user-help@(protected)
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.