aspose file tools
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 The Software Craftsman this week in the Agile 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%)
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: How to validate using annotation