• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

struts2 validation with conditions!

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am submitting a form to the action class. In the action class I need to do some validation. But the validation needs to be done if some conditions are true. there are different validation errors for different fields.

so lets say if i have this in my action class

this will do validation whenever the 'enter date field is empty'. But what If I wanted to do this if and only if method isTrue() returns true? how would i do that??

Will I have to write my custom validator just for this?

appreciate all the help!
 
reply
    Bookmark Topic Watch Topic
  • New Topic