aspose 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Method level validation in struts2 using Annotation
 
Similar Threads
Struts2: use EmailValidator in my validate() method?
Configuring RunTimeException class in Struts2
Struts2 Input Validation using Annotations
Struts2 Validation
Handling error messages (Struts2 jquery )