Jim Bartram wrote:

> 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?
> 


This is what the <servlet-mapping> element does (I don't use JSPs, but 
it works fine for servlets).

e.g.

<servlet>
   <servlet-name>hello</servlet-name>
   <jsp-file>hello.jsp</jsp-file>
   ...
</servlet>

<servlet-mapping>
   <servlet-name>hello</servlet-name>
   <url-pattern>hello.html</url-pattern>
</servlet-mapping>

So your user types hello.html, and gets served the output from hello.jsp.

HTH,
Martin



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

Reply via email to