File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Method level validation in struts2 using Annotation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Method level validation in struts2 using Annotation" Watch "Method level validation in struts2 using Annotation" New topic
Author

Method level validation in struts2 using Annotation

Naufal kurudamparambil
Greenhorn

Joined: Jan 03, 2012
Posts: 4
I am new in struts2 how can implement method level validation using annotation. In my action class have 2 methods, Add and delete. when call add action then I want to validate all fields, but when I call delete action then I want to validate only one field.
How can I solve this problem, Please help me

Naufal K.K
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

hi Nafual,

Search on @skipvaldiation which will solve your problem.


Regards
Jatan
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Method level validation in struts2 using Annotation
 
Similar Threads
Configuring RunTimeException class in Struts2
Struts2 Input Validation using Annotations
Struts2 Validation
Handling error messages (Struts2 jquery )
Struts2: use EmailValidator in my validate() method?