Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
    Bookmark Topic Watch Topic
  • New Topic

intercepting URL before it gets to Servlet

 
Alexey Gor
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Pie
Posts: 65111
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
    Bookmark Topic Watch Topic
  • New Topic