• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Commons Validator

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have a action class that populates data to be loaded into <html:select>, on completion the control goes to
the jsp, where the form is displayed. I have configured commons validator in this jsp, by including the 2 xml files,
extending ValidatorForm instead of ActionForm and also overriden the validate() method
But i want the validator to perform validate when i submit the form, rather when i click on certain hyperlink.
This doesnt happen, validator is executed when the jsp is loaded... which is not what i want....
What do i do?
 
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

see if ur hyperlink has the same form associated with that ...then obviously that valudate method gets executed ......for this u can ValidatorActionForm than ValidatorForm which will work depending on the path of the action arther than the form bean name

hope this is what u need
 
Create symphonies in seed and soil. For this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic