aspose file tools
The moose likes Servlets and the fly likes how i can exclude a url pattern from a filter ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "how i can exclude a url pattern from a filter ?" Watch "how i can exclude a url pattern from a filter ?" New topic
Author

how i can exclude a url pattern from a filter ?

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 550
Hi
thank you for reading my post
how i can exclude a url pattern from a filter ?
for example i do not want filter to be applied over /s/* , how i should define this exclusion ?

Thanks
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
If you mean you want someother Filter/Servlet to handle that particular kind of URL patterns, then you can define one with that URL. However, you need to cater that.

If you don't want to handle that particular URLs then again you can define a resource that will redirect it to a error page or something.
Kartik Lax
Greenhorn

Joined: Apr 23, 2006
Posts: 24
Excluding a URL for a filter, i believe is not possible. You will have to include all other possible URL patterns. Or one cheeky approach would be include /* for your filter and to code another dummy filter (that does nothing) and map /s/* to it.

-Hellkay
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56529
    
  14

Not a JSP question. Moved to Servlets.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: how i can exclude a url pattern from a filter ?
 
Similar Threads
HttpServletRequest equivalent on html page
Odd problem with RichFaces and Servlet Filter
Filter has Exclude url-pattern ?
how i can exclude a url pattern from a filter ?
url-pattern in filter mapping in struts2