File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Client side validation problem" Watch "Client side validation problem" New topic
Author

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 ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Client side validation problem