This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
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: 753
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet Filters + Request URI
 
Similar Threads
WA #1.....word association
Question from JWebPlus
Question about REST using Jersey
difference between URL and URI
Specifying JSP File Name