This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • 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