This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validwhen validator java script

 
Martaban Martaban
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just came to know that validwhen validator in struts 1.2 doesnt have a client side javascript component , can any one suggest or refer me to the javascript code somewhere out there that can be used to do clientside validation using the same validwhen validator ,I am trying to do both server side and client side validations for the equality of passwords,the server side validation using validwhen is taken care of in struts in 1.2 but not the client side validation , I am thinking if anyone has the javascript that that I can add to the validator-rules.xml file to have the validwhen validator do the clientside validation for equality fo fields.

Thanks in advance.
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Not quite an EJB question but I'll try to help. As far as I remember the validwhen rule was considered to be far too complex in order to be implemented on the client side as well. If you'd like you can try to generate the client scripts as well and view the generated scripts from within the client browser. Finally you can try some debugging on your own, but again I won't be surprise to conclude that the client validation is not working at all. As a final solution I would recommand you to post a similar question on the Struts forum.
Regards.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic