• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Filter in servlet

 
Mukesh Prajapati
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?
 
Paul Clapham
Sheriff
Posts: 21416
33
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?
 
Bosun Bello
Ranch Hand
Posts: 1511
  • 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.
 
Stoian Azarov
Ranch Hand
Posts: 113
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And an example:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic