This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Client side validation" Watch "Client side validation" New topic
Author

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: http://www.roseindia.net/struts/struts_validator_framework.shtml


-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Client side validation
 
Similar Threads
Problem Uploading Files
date validation
Struts Indexed properties client side validation
validations using javascript
validating forms