0

I'm using servlet 3.0 but i can't specify filter for only one servlet using annotations? can anyone help me?

jmt
  • 223
  • 1
  • 8
  • 28

1 Answers1

0

finally, I found this and it is working with me

 @WebFilter(filterName = "BasicFilter" , urlPatterns = {"/BasicFilter"},servletNames ={"/FilteredServlet"})
jmt
  • 223
  • 1
  • 8
  • 28