wood burning stoves 2.0*
The moose likes Struts and the fly likes Client side validation problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Client side validation problem" Watch "Client side validation problem" New topic

Client side validation problem

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
I've done clent-side validation using struts... However... When I run my application, I get a javascript error...

Error: validateUserLoginForm is not defined

how can this be? I didn't write any javascript by hand but let struts take care of eveything for me... How can this error be produced? Here's the code for my JSP page...

SCJP 1.5
http://devpinoy.org/blogs/lamia/ - http://everypesocounts.com/
Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
Solved the problem. Instead of defining validateUserLoginForm I had t define validateLoginFormBean which was defined in my struts-config.xml

Thus, calling

and putting

finally makes sense!
[ January 05, 2006: Message edited by: Timothy Sam ]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Client side validation problem