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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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%)
 
wood burning stoves
 
subject: How to validate using annotation