Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to write JSP validation routine for HTML form field
Message
 
To
25/08/2001 00:19:17
General information
Forum:
Java
Category:
Other
Miscellaneous
Thread ID:
00549107
Message ID:
00549369
Views:
19
>How to write JSP validation routine for HTML form field so that the value is checked on client side.
>Rajesh
Don't know about JSP but if you want client side validation you should use javascript. It does it all and can integrate with a jsp page fairly well.

Alternatively if you are trying to avoid having the page refreshed you can have a hidden frame which is given the data and refreshed as blank with a form and one hidden field. Javascript can read the hidden field and interpret the answer.

example: email field. There are some groovy email validators which "ping" the email address. the hidden frame could have a new page called with the email address given as a parameter. The page comes back with the form saying 'good' or 'bad'. There's an onload javascript function which reads the result and puts an alert up, and moves the focus back to the email field on the visible frame.

It's a bit tricky but could be worth it.

Sarah
Sarah King
pcpropertymanager.com
Previous
Reply
Map
View

Click here to load this message in the networking platform