From: Jim Bartram <[EMAIL PROTECTED]>
Date: Thu, 11 Jul 2002 21:16:30 -0700
 To: [EMAIL PROTECTED]
 Subject: Altering file extensions
> 
> I'm using Tomcat 4.0 in a very simple way, hosting some straightforward
> .jsp files. Instead of the client seeing files served with the *.jsp
> extension, I'd like to be able to substitue anothe extension instead --
> like *.html :-). Is there a way to do that in Tomcat ? If so, how do I go
> about it?
> 
> --Jim Bartram

try:
$CATALINA_HOME/conf/web.xml
add to the JSP servlet mapping

  <!-- The mapping for the JSP servlet -->
  <servlet-mapping>
    <servlet-name>jsp</servlet-name>
    <url-pattern>*.html</url-pattern>
  </servlet-mapping>

should work.....

HTH

Steven


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to