You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Barnett, Brian W." <bb...@scholarinc.com> on 2004/10/07 17:48:06 UTC

RE: [validator] How to submit only when ther are no eror

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:yacout_dadoun@hotmail.com] 
Sent: Thursday, October 07, 2004 9:49 AM
To: user@struts.apache.org
Cc: yacout_dadoun@hotmail.com
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org