File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes intercepting URL before it gets to Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

intercepting URL before it gets to Servlet

Alexey Gor
Greenhorn

Joined: Jul 13, 2004
Posts: 27
Hello,

Is there a way to intercept and change a URL before it gets to Servlet? I want to make changes to it before Tomcat maps it to Context/Servlet.

URL rewriting sounds like the right thing, but all resources only talk about tracking sessions using it.

Should I use a filter? It seems there are no methods for changing the request URL... Any info is appreciated. Please help.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

Closing this since you address the same issue in this topic. Please do not cross-post the same question more than once. It wastes people's time when multiple redundant conversations take place.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: intercepting URL before it gets to Servlet
 
Similar Threads
intercepting URL before it gets to Servlet
Where to release database connection before servlet gets destroyed?
Filter vs Base Servlet
question on filters (HFSJ page :675)
when do the filter gets called