• 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: 23429
46
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:
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!