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
posted
0
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.