I think it's quite normal that the whole javascript code is generated in the HTML output when you use client-side validation or are my thoughts wrong?

sai reddy schrieb:
I'm using struts 1.2.7 version.

I wanted to validate a form client side. I used <html:javascript/> tag with 'formName' attribute set to the form-bean's logical name in struts-config.xml. Inside validation.xml file, i set "depends" attribute's value as "required" ( i just wanted these form fields to be non white spaces ).

Now, the actual problem is that all the javascript code gets generated as the HTML output. I mean i just wanted to check if the form-fields have non-white space characters or not. But unnecessarily all other javascript code like "validateFloat", "validateDate", "validateEmail" validation code is being generated.


Please tell me where did it go wrong??


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to