One way to accomplish this is with client side validation. This is dependent on scripting being enabled on the browser however.
<html:form action="/foo" onsubmit="return validateFooForm(this);"> ... </html:form> <html:javascript formName = "fooForm"/> -----Original Message----- From: yacout dadoun [mailto:[EMAIL PROTECTED] Sent: Thursday, October 07, 2004 9:49 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [validator] How to submit only when ther are no eror Hi, I'm using struts1.2.4, using validator, how can i submit teh oage, which neans call my bean setter only when therer are norerror genrated by my validator? i guess it'll be done in teh Action java file but how? it always set the entered values even whne teh input is empty and wich imy validator does not allow Thanks _________________________________________________________________ MSN(r) Calendar keeps you organized and takes the effort out of scheduling get-togethers. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=htt p://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN(r) Premium right now and get the first two months FREE*. --------------------------------------------------------------------- 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]