For simple validations, like requiring fields to be filled up, validating
date formats, email addresses, etc., it is best to do it on the client side.
For checking validity of the user, go server side.
Obviously, doing things at the client side won't bore your users to death
since it is fast and instantaneous.
You can check http://javascript.internet.com/forms/ for canned validation
codes.
Mio Nino P. Marquez
Senior Analyst Programmer
Apsilon Technologies Pte Ltd
Email: [EMAIL PROTECTED]
DID : (65) 6613219
----- Original Message -----
From: "Tripat Singh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 30, 2000 4:27 PM
Subject: Design and Validation opinion.
> Hi pals!!!
>
> I would like to have a opinion of all of you for validating fields in the
> html page.
>
> -- Whats is the preferable way to validate fields - server side in the
> servlet/jsp page or using the java script at the client end?
>
> -- What are the advantages and disadvantages of both the techniques?
>
> -- Suppose i choose the server side validation, should i validate ALL the
> required fields
>
> or
> as soon i find the FIRST reqired field which was left blank and ask end
user
> to fill up all the required field(s).
>
>
> Thanks and Regards
>
> Tripat
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html