This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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 -
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 ]
I agree. Here's the link:
subject: Client side validation problem
Similar Threads
JaveScript code align ?
jsp:include and c:import combination/nesting
spaces while populating using s:iterator
Waiting page while loading
Getting search results on same search page