I'm using servlet 3.0 but i can't specify filter for only one servlet using annotations? can anyone help me?
Asked
Active
Viewed 137 times
1 Answers
0
finally, I found this and it is working with me
@WebFilter(filterName = "BasicFilter" , urlPatterns = {"/BasicFilter"},servletNames ={"/FilteredServlet"})

jmt
- 223
- 1
- 8
- 28