No, but this *might* work. Place it in your servlet which maps to /* ...
(assuming your extending javax.servlet.http.HttpServlet)


doGet(HttpServletRequest req, HttpServletResponse resp) { if (req.getRequestURI().indexOf("/resources")>-1) { //Use the default servlet to serve the static content getServletContext().getNamedDispatcher("default").forward(req, resp); return; }

  //Normal logic
}

-Tim

Samuel Le Berrigaud wrote:
Hi all,

I want to map my servlet with /* url pattern except the /resources directory which contains static content that I want to acces directly. Is there any particular configuration that could allow me to do so, in my web.xml file or in the server.xml config file ?

I want to do that on a Tomcat 4.1



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



Reply via email to