Gary,

There's no way to use jsp to validate items that happen on the client side.
What you can do is add some javascript functions which do this sort of
checking to
your jsp.  The javascript functions are run by the client browser and will
provide the automatic checking.  Of course, as you may have noticed in
recent posts
of the past, you need to check this on the server anyway since a user could
have
a browser which doesn't understand javascript, or the user could have
disabled
javascript.  You can, however, expect that the values submitted will always
pass
validation on the server if the scripts have been correctly written and
executed.

-AMT

> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Schechter Gary
> Sent: Wednesday, December 15, 1999 2:16 PM
> To: [EMAIL PROTECTED]
> Subject: client-side validations with JSP
>
>
> I'm a newbie with JSP so plz pardon the question:
>
> my users are used to having immediate notification if they enter
> something wrong
> in a  field.
>
> For example, if a textfield is supposed to contain a number, i
> would like to
> either prevent them from entering an alphabetic char in the field
> in the first
> place, or give an error message immediately, without having them
> fill in the
> entire form and submitting the page to the server.
>
> i realize that jsp means server-side, but is there any way to do
> this with an
> html/jsp driven application ?
>
> thanx
> gary
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to