You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by in...@pobox.com on 2003/12/03 12:49:58 UTC

Validator: Unwanted Client side AND Server side validation

Hi,

When using client side validation the form is submitted regardless of Javascript
validation check occuring (After clicking OK on the Javascript popup warning
following an error the form get submitted anyway). 

I used validation already without this behaviour to occur ... I must be
misconfiguring something but cannot find out what it is. Validation works as
expected Server side.

I am using Struts 1.1 with the bundled Validator together with Scaffold 1_0.

Any idea welcome, Patrick


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


Re: Validator: Unwanted Client side AND Server side validation

Posted by Rouven Gehm <r....@teckpro.de>.
Well i have to set validate false of the action in the struts-config.xml,
then i only have client side validation without submitting,
but then i have to call the .validate Method in the action to do the 
server-side validation, if i disable JavaScript.

Any more ideas to this problem ?


----- Original Message ----- 
From: <in...@pobox.com>
To: <st...@jakarta.apache.org>
Sent: Wednesday, December 03, 2003 12:49 PM
Subject: Validator: Unwanted Client side AND Server side validation


> Hi,
> 
> When using client side validation the form is submitted regardless of Javascript
> validation check occuring (After clicking OK on the Javascript popup warning
> following an error the form get submitted anyway). 
> 
> I used validation already without this behaviour to occur ... I must be
> misconfiguring something but cannot find out what it is. Validation works as
> expected Server side.
> 
> I am using Struts 1.1 with the bundled Validator together with Scaffold 1_0.
> 
> Any idea welcome, Patrick
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 

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