permaculture playing cards*
The moose likes EJB and other Java EE Technologies and the fly likes front-end validation in struts jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "front-end validation in struts jsp page" Watch "front-end validation in struts jsp page" New topic
Author

front-end validation in struts jsp page

Tanveer Rameez
Ranch Hand

Joined: Dec 11, 2000
Posts: 158
hi,
i have a jsp page in struts framework.
the submit button is as follows:
<html:submit value="Next">

Now i want to do some front-end javascript validations before submission and if validation fails, I just show an alert button (msg box) with the errors and the submission should not take place.
I can try by having a button on 'onclick' event of the submit button. But how do I let it know that validation has failed and don't submit?
Tanveer


Author of JPhotoBrush Pro (www.jphotobrushpro.com)
 
 
subject: front-end validation in struts jsp page