Meaningless Drivel is fun!*
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


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
 
jQuery in Action, 2nd edition
 
subject: Method level validation in struts2 using Annotation