This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how i can exclude a url pattern from a filter ?

 
raminaa niilian
Ranch Hand
Posts: 551
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2874
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64194
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not a JSP question. Moved to Servlets.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic