File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

front-end validation in struts jsp page

Tanveer Rameez
Ranch Hand
Posts: 158
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic