File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validwhen validator java script

 
Martaban Martaban
Greenhorn
Posts: 6
  • 0
  • 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
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic