my dog learned polymorphism
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

Client side validation problem

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 751
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 -
Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 751
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 ]
I agree. Here's the link:
subject: Client side validation problem
It's not a secret anymore!