Hello Chaps,
I'm new-ish to servlets, and this is my first post to this list.
Hello All..
Interesting points made, perhaps I can add a few..
In some large orgs and banks especially, JavaScript is disabled
in their boilerplate browser installs. There exists several security
issues related to client side JavaScript, which don't have the URL's
for right now. a few minutes on Google would reveal more. Of course,
many users switch off their browser JavaScript functionality, to save them
from a plethora of magic-wand pointers, status bar scrolling annoyances
etc..
Also, if the server is doing anything important/interesting, the server
can not trust the client's sent data - the server would *have* to check the
data's
validity.
What this means is that any processing carried out on the client, would
have to be repeated on the server - thus repeating the computation. One
could argue
that if valid data arrives at the server, the validation processing time on
the server
would be much quicker (less string manipulation) - but for the majority of
cases, I couldn't
really see this as a great speed improvement.
I remember one of our lecturers mentioning a trick with JavaScript that
allows client side
scripting to generate an HTML page and then point the browser to it - to
provide a better
explanation of a failed input than a nasty grey box..
I don't know much about serverside JScripting - sorry! :-)
Tim
Manchester, UK
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
Tripat Singh
Sent: 30 October 2000 10:51
To: [EMAIL PROTECTED]
Subject: Re: Design and Validation opinion.
Thank u all very much for ur opinions.
They r of great help..
Thanks and regards
Tripat
----- Original Message -----
From: "Mio Nino Marquez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 30, 2000 2:07 PM
Subject: Re: Design and Validation opinion.
> 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
>
___________________________________________________________________________
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
___________________________________________________________________________
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