File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

How to validate using annotation

Adeyemi Adeseye

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:
subject: How to validate using annotation
It's not a secret anymore!