Is there anyway to have additional arguments in the url of a struts2 rest plugin controller?
For example, I have:
It would be not REST style to have such URLs. Instead, you can use two URLs to access different resources.
[domain]/person/{id}
[domain]/comment/{commentId}
On the other hand if you mix convention and rest style mapping you can use namedVariable
or regex
pattern matcher to achieve what you would like to have.