wood burning stoves 2.0*
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
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%)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to validate using annotation