*
The moose likes Struts and the fly likes How to validate using annotation 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 "How to validate using annotation" Watch "How to validate using annotation" New topic
Author

How to validate using annotation

Adeyemi Adeseye
Greenhorn

Joined: Jan 10, 2009
Posts: 27
I am wondering what annotation to use to validate my <s:select> and <s:checkbox> and how to use validation to ensure that the phone field takes exactly 11 digit.

See my input file below




See below what i have so far in my action class to validate this field




SCJP 6.0 (83%)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to validate using annotation
 
Similar Threads
Neither BindingResult nor plain target object for bean name 'vids2m1' available as request attribute
JDBC code with type 1 driver not working
Validation Issues
html:iterate or html:multibox problem
Struts 2 JQuery Grid is not working in jsp with Integration of Strtus 2,Hibernate,Spring