A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Elasticsearch in Action
this week in the
Modify request URI
Joined: Dec 11, 2008
Jul 20, 2009 05:30:46
I'm implementing a complex filter, this filter receives request from many clients and for some reason some clients send requests with the URI duplicated like this:
I can't touch the code of the clients, but I need to change the incoming URI to
now, in my filter method
public void doFilter(
//I process the URI here
Since there's no httpResponse.setURI() method, How can I change the incoming request URI?
Author and all-around good cowpoke
Joined: Mar 22, 2000
Jul 20, 2009 07:09:31
Wouldnt that be a job for a custom
that redifines getContextPath()?
And probably some other methods.
Author and ninkuma
Joined: Jan 10, 2002
Jul 20, 2009 08:28:52
Why not just redirect to the correct URI?
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: Modify request URI
Question 65 Final mock exam - HFSJ
Filters and Servlets
Problems about Filters in Servlets
Help - Problems with redirect in servlet filter in my JSF web app
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015