File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Servlet Filters + Request URI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Filters + Request URI" Watch "Servlet Filters + Request URI" New topic

Servlet Filters + Request URI

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 761

In ServletFilters is it possible to know the request URI ?

What i want to do is.

If the requestUri is .../.../notification_history.jsp then want to remove some session variables

else continue processing request.

Jigar Naik

shivendra tripathi
Ranch Hand

Joined: Aug 26, 2008
Posts: 263

if (request instanceof HttpServletRequest) {

SCJP 1.5(97%) My Blog
I agree. Here's the link:
subject: Servlet Filters + Request URI
It's not a secret anymore!