Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Client side validation problem

 
Timothy Sam
Ranch Hand
Posts: 751
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...


 
Timothy Sam
Ranch Hand
Posts: 751
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic