This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Annotation in Validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Annotation in Validation" Watch "Annotation in Validation" New topic

Annotation in Validation

Goran Markovic
Ranch Hand

Joined: Sep 26, 2008
Posts: 399
Hi, I didn't find in the book I read from how can I perform annotated validation at the domain object level?
Using validations .xml file I perform validation, but how to do this by annotations?
I have Registration-validatio.xml file, inside what is followed declaration :

and a User-validation.xml, with followed content:

this is validation at domain level object, and it works ok. But I would like to perform validation through annotations.
I know how to perform annotated validation on the class, where fields are exposed directly, but how at domain level object?!
jQuery in Action, 2nd edition
subject: Annotation in Validation
Similar Threads
struts validation
Understanding public void prepare() +tiles
Struts 2 Validation
Location for ActionClass-validation.xml in web directory structure.
error in validation