The validator framework can be used to generate client-side validation
JavaScript for Struts forms.  However, you should *always* redo the
validations at the server side -- it is not safe programming to assume
that the user has JavaScript enabled.

The way I look at it, client-side validation is there to improve the user
interface by reacting more quickly to user errors.  It's not something
that the server-side application should rely on.

Craig


On Mon, 1 Jul 2002, Manish_Purang wrote:

> Date: Mon, 1 Jul 2002 12:32:37 +0530
> From: Manish_Purang <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Struts vs Jsp/javascript..
>
> Hi,
>
> Wanted to know whether or not Struts Framework scores over the jsp-
> javascript combination in terms of validation of form elements.
> I hope you are able to unedrstand what i am asking...? to make it clearer..
>
> on one hand we have the jsp - javascript combination  where in we can call a
> single javascript funtion to validate the form elements and provide for
> basic validations  like NOT NULL , ONLY NUMERICALS... and so on...
>
> on the other hand we could use Struts ' validate function and do the same
> job...
>
> Which appraoch is better and any advantages of using Struts for the same...!
>
> Regards,
> Manish.
> **************************************************************************
> This email (including any attachments) is intended for the sole use of the
> intended recipient/s and may contain material that is CONFIDENTIAL AND
> PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
> distribution or forwarding of any or all of the contents in this message is
> STRICTLY PROHIBITED. If you are not the intended recipient, please contact
> the sender by email and delete all copies; your cooperation in this regard
> is appreciated.
> **************************************************************************
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to