• Post Reply Bookmark Topic Watch Topic
  • New Topic

Filter in servlet  RSS feed

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is it possible to apply one Filter to more than two Servlet??? please reply soon...... please give me such example. how to do it?
 
Sheriff
Posts: 23506
47
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it is possible.

Why do you ask? Did you have some problem when you tried to do it?
 
Ranch Hand
Posts: 1512
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can just map the filter to be executed on the urls that match your servlets.
 
Ranch Hand
Posts: 113
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And an example:
 
Does this tiny ad smell okay to you?
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!