File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes RequestInterceptor  in Tomcat 5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "RequestInterceptor  in Tomcat 5" Watch "RequestInterceptor  in Tomcat 5" New topic
Author

RequestInterceptor in Tomcat 5

Alton Hernandez
Ranch Hand

Joined: May 30, 2003
Posts: 443
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

Joined: Feb 20, 2001
Posts: 3695

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).
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: RequestInterceptor in Tomcat 5