I am stuck with a problem of post body attributes validation. I need to throw an exception or show an error, when an invalid attribute is passed down to JSON request body. I have no idea how to do that? Please help.
Why cant you use Jersey's bean validation support examples and docs- here?
Bean Validation support in Jersey is provided as an extension module and needs to be mentioned explicitly in your pom.xml file (in case of using Maven):
you can define your custom validations and ValidationError messages.
In JSP add validation-errors tags and you are done.