1

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!

1 Answer 1

1

Change to this

www.mywebsite.com/@/77,aa,bb,cc

@WebServlet(name = "myServlet", urlPatterns = {"/@/*"})
Sign up to request clarification or add additional context in comments.

1 Comment

Obvious, but that's not what I want

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.