Don't forget that any client validations you do using JavaScript should be duplicated on the server side because there is no guarantee the JavaScipt will run.  The client have have it turned off or the script could fail depending on the browser.  I have started work on a validation framework that works in Struts and let's you sync up your server side validation with your client side validation if you want to look at it. 

http://home.earthlink.net/~dwinterfeldt

David

  "Dudley Butt@i-Commerce" <[EMAIL PROTECTED]> wrote:

i just find it sometimes easier to move all validation off the jsp, and
hence all java off the jsp. I think its just basically a personal
preference. This way I'm making full use of the struts error handling model
and keep all my java in one place. There always seems to be more than one
way to do things, just depends on what u need to do and whats your
preference
Thanx for all the help guys

-----Original Message-----
From: Eelco van Kuik [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 08, 2001 11:32 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Javascript Validation


I don't understand why Dudley thought it was necessary to send java code,
but I think what you need you can find at:

http://javascript.internet.com/forms/

I don't have internet from this place, but know there are many javascript
examples there.

Regards,

Eelco



-----Original Message-----
From: Satish Khanzode [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 08, 2001 7:42 AM
To: [EMAIL PROTECTED]
Subject: Javascript Validation


Hi
Has anyone used client-side validations (using Javascript) in jsp pages
created Struts ? Pls help.
Thanks,
Satish Khanzode



Do You Yahoo!?
Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail.

Reply via email to