Howdy,
>Below is the filter I've been using. It seems to mostly work,
>but any image files from a path such as "/images/Delete.gif"
>seem to not get updated to "/hal/images/Delete.gif" in the
>HTML.
>
>However, the output I get to System.out *does* show the filter
>processing these requests. Any ideas? Is this the correct way
>to implement the filter?
Hmm, that's strange. Enable the AccessLogValve (in server.xml) so that
you can see what's actually being requested from the server.
> try
> {
>System.out.println( "REQ : getRequestURI : " +
request.getRequestURI()
>);
> String filteredURL = "/hal"+request.getRequestURI();
>System.out.println( filteredURL );
> //chain.doFilter(request, response);
>
>response.sendRedirect(response.encodeRedirectURL(filteredURL));
It might not matter to you, but I think this code would drop the query
string from the forward URL. Test to make sure it doesn't, or it if
does add the request.getQueryStrign() to filterURL (before encoding).
So you get the image forward URLs in your System.out output?
Yoav Shapira
This e-mail, including any attachments, is a confidential business communication, and
may contain information that is confidential, proprietary and/or privileged. This
e-mail is intended only for the individual(s) to whom it is addressed, and may not be
saved, copied, printed, disclosed or used by anyone else. If you are not the(an)
intended recipient, please immediately delete this e-mail from your computer system
and notify the sender. Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]