Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!

  • Post Reply Bookmark Topic Watch Topic
  • New Topic

front-end validation in struts jsp page  RSS feed

Tanveer Rameez
Ranch Hand
Posts: 158
  • 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?
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!