This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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).
 
wood burning stoves
 
subject: RequestInterceptor in Tomcat 5
 
Similar Threads
Setting up Tomcat to recognize /servlet/
how to make program in networking
Second Book to refer
Tomcat 5.5 and context.log
jsp:useBean exception