• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet Filters + Request URI

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
shivendra tripathi
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try

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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic