How this Javascript will be used to do client side validations? Pls explain me in briref what and all we need to do for client side validations with this Javascript?
Nayak- you said without going server side we can do client side validation. Validator-rules.xml file is available at server side only, then how the validation will happen at client side? Pls explain me the concept clearly.
I suggest that you jump over to Google and type in "struts client side validation". You are likely to find much more complete answer....plus you don't have to wait for a reply. If you have specific questions then feel free to post them here.
I have already done google serach on this, but all those links telling about enabling client side java script using <html:javascript> in jsp.
I dint find any information regarding this javascript existing in validator-rules.xml file. I want to know how can we utilise that javascript code at client side.
It is hard to follow your questions when you have so many different threads asking related questions. Have you figured out that in order to enable client-side validation for a custom validator you have to basically duplicate your validation in JavaScript? The Java code that you wrote only gets executed on the server side.
I have written javascript in validator-rules.xml, enabled client side javascript using <html:javascript> . After running the application, I saw the code using 'view source'....all that java script code which I have written in validator-rules.xml is at client side now.
Thanks for your all replies.
Javardhan:
Humans and their filthy friendship brings nothing but trouble. My only solace is this tiny ad:
a bit of art, as a gift, the permaculture playing cards