Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Method level validation in struts2 using Annotation

 
Naufal kurudamparambil
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 299
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Nafual,

Search on @skipvaldiation which will solve your problem.


Regards
Jatan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic