The moose likes Struts and the fly likes Client side validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Client side validation" Watch "Client side validation" New topic

Client side validation

Philip Pomario
Ranch Hand

Joined: Oct 03, 2003
Posts: 113
My Struts app seems to be generating all JavaScript necessary, but no validation is happening at client side at "hit-submit-button time". Validations on the server are flawless.

Any ideas on how to make the Java Scripts work are much appreciated.
alan do
Ranch Hand

Joined: Apr 14, 2005
Posts: 354
did you make sure to include the onsubmit="validateXXXXX(this);" to your html:form tag?

here's a good resource for all the necessary steps:

-/a<br />certified slacker...yes, my last name is 'do' - <a href="" target="_blank" rel="nofollow"></a>
I agree. Here's the link:
subject: Client side validation
It's not a secret anymore!