GeeCON Prague 2014*
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


JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Filters + Request URI" Watch "Servlet Filters + Request URI" New topic
Author

Servlet Filters + Request URI

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 757
Hi,

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
try

if (request instanceof HttpServletRequest) {
((HttpServletRequest)request).getRequestURI();
}


SCJP 1.5(97%) My Blog
 
 
subject: Servlet Filters + Request URI