Re: Wildcards in <url-pattern>
From: Ola Gustafsson (Ola.Gustafsson_at_itc.ki.se)
Date: 02/26/04
- Next message: hiwa: "Re: Passing objects (not stones)"
- Previous message: Kai Grossjohann: "Re: reuse a thread which is no longer "alive""
- In reply to: Edward Patrick: "Wildcards in <url-pattern>"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: hiwa: "Re: Passing objects (not stones)"
- Previous message: Kai Grossjohann: "Re: reuse a thread which is no longer "alive""
- In reply to: Edward Patrick: "Wildcards in <url-pattern>"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]