You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Peter Johnson <pe...@wizardslair.net> on 2005/03/05 03:52:40 UTC
Mapping to DefaultServlet from webapp
Hi all,
how would one go about mapping say /images/* to the default servlet to
override an application mapping of /* to appServlet?
PJ
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Mapping to DefaultServlet from webapp
Posted by Tim Funk <fu...@joedog.org>.
You can't.
But you can you a filter to
- trap all requests
- look for /images/
- use getNamedDispatcher("default") to get the default servlet
- forward
- ignore the rest of the filter chain
-Tim
Peter Johnson wrote:
> Hi all,
>
> how would one go about mapping say /images/* to the default servlet to
> override an application mapping of /* to appServlet?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org