File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Commons Validator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Commons Validator" Watch "Commons Validator" New topic
Author

Commons Validator

san geetha
Ranch Hand

Joined: Sep 07, 2004
Posts: 44
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?
sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Commons Validator