In your execute method, you can manually call the ActionForm's validate() method. The 'validate="true"' attribute/parameter is there for you convenience - you do not have to use it.
Regards, David -----Original Message----- From: mosho [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 4:20 PM To: user@struts.apache.org Subject: Question about Struts validator Hi All, I want to validate a form by using struts validator, it is working fine. It validates the form if I click submit button, and it also validates the form if I pass it as a url for example: http://111.22.80.244:8989/eNOI/test.do I want to validate the form only if I hit submit button not by directly entering the url. How can I handle this situation? Thanks for your help! Rosh -- View this message in context: http://www.nabble.com/Question-about-Struts-validator-t1851247.html#a5054174 Sent from the Struts - User forum at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]