Yes, you can manually do everything that the Struts tag and the
validation.xml file is doing for you.

<form name="fooForm" method="post" action="/do/foo" onsubmit="return
validateFooForm(this);">

...

</form>

Then you would have to write a validateFooForm javascript function that
validates the fields of your form. Your validateFooForm function should
return true if validation succeeds and false if validation fails.

   } -----Original Message-----
From: yacout dadoun [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 07, 2004 10:04 AM
To: [EMAIL PROTECTED]
Subject: RE: [validator] How to submit only when ther are no eror

Thanks, but is there a way to do that using jsp jstl  no struts tags  ?


>From: "Barnett, Brian W." <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
>Subject: RE: [validator] How to submit only when ther are no eror
>Date: Thu, 7 Oct 2004 10:48:06 -0500
>
>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=ht
t
>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]
>

_________________________________________________________________
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]

Reply via email to