aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: front-end validation in struts jsp page
 
Similar Threads
Validating selective fields of a JSP thru Struts Validator Framework
How to Skip automatic struts validation if more than 1 submit button present?
converting to https from http
Problem with Struts2 validation
Need help for Check Box Validation in struts1.2 without using javascript