Reputation: 2730
I would like to create a servlet pattern that works for URLs like:
www.mywebsite.com/@77,aa,bb,cc
www.mywebsite.com/@82,zz,dd,cc
...
I mean, the symbol "@" and then, any string.
I tryied with:
@WebServlet(name = "myServlet", urlPatterns = {"/@*"})
...but it didn't work.
How could I do that?
Thanks!
Upvotes: 1
Views: 96
Reputation: 652
Change to this
www.mywebsite.com/@/77,aa,bb,cc
@WebServlet(name = "myServlet", urlPatterns = {"/@/*"})
Upvotes: 1