It's not a secret anymore!*
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)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: front-end validation in struts jsp page
 
Similar Threads
Need help for Check Box Validation in struts1.2 without using javascript
Validating selective fields of a JSP thru Struts Validator Framework
converting to https from http
Problem with Struts2 validation
How to Skip automatic struts validation if more than 1 submit button present?