Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RequestInterceptor in Tomcat 5

 
Alton Hernandez
Ranch Hand
Posts: 443
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using Tomcat 5 but I am using a JSP book written when there is only Tomcat 3. One of the examples of this book uses the RequestInterceptor which reference the class org.apache.tomcat.request.SimpleRealm. Looking at Tomcat 5 documentations, I cannot seem to locate any reference to RequestInterceptor. So my questions now are: does RequestIntereceptor still exists in Tomcat 5 ? If not, what is its replacement?
Thanks.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It might have been replaced in Tomcat 4x and 5 with the Valve.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html

However, even Tomcat developers would tell you that the newest, and most portable way to do 'request interception' is with Filters. (part of the Servlet 2.3 spec).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic