permaculture playing cards*
The moose likes EJB and other Java EE Technologies and the fly likes Validwhen validator java script 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 » Java » EJB and other Java EE Technologies
Bookmark "Validwhen validator java script" Watch "Validwhen validator java script" New topic
Author

Validwhen validator java script

Martaban Martaban
Greenhorn

Joined: Sep 25, 2005
Posts: 6
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

Joined: Feb 17, 2005
Posts: 704
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 think, therefore I exist -- Rene Descartes
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validwhen validator java script
 
Similar Threads
Validwhen validator client side javascript
Error handling in Struts
DispatchAction and Validator
client side validation vs server side validation
Struts Validator FrameWork = JavaScript Error