Re: Wildcards in <url-pattern>

From: Ola Gustafsson (Ola.Gustafsson_at_itc.ki.se)
Date: 02/26/04


Date: 26 Feb 2004 09:51:58 +0100

EPatrick@alldata.net (Edward Patrick) writes:

<snip>

> So, my servlet adds the path and then forwards it on.
>
> However; since WEB.XML says "*.css", well, now my request with
> "MyApp/ThisClient/style.css" gets caught too.

<snip>

Hi

When you say you forward it, I take it you mean that you use sendRedirect.
If that's the case, the easiest way to solve your problem is to use
a request-dispatcher to forward instead:

RequestDispatcher rd = request.getRequestDispatcher(
        "MyApp/ThisClient/style.css");
rd.forward(request,response);

HTH
HAND

-- 
Ola Gustafsson