Hi Rajesh, > you mean dynamicJavascript=false > > what will happen if i give it. > > normally html:javascript will create a main function called > > validate<formname>(form) {....} > > will this function writes ? if so then where all the other functions goes ? The javascript tag produces javascript in two parts: dynamic and static. The dynamic part is the one you stated above, and it is made per form, according to the validation.xml. The static part is the same whatever way you do it. It is the static part that you would want to throw out into a .js file or whatever. The dynamic part, I suggest you stick with it.
Anyways, quoting the user guide, "if dynamicJavascript is set to true and staticJavascript is set to false then only the dynamic JavaScript will be rendered". Put this in each of your JSP's. "If dynamicJavascript is set to false and staticJavascript is set to true then only the static JavaScript will be rendered". Put this in a separate JSP and include that JSP in all of your other JSP's. > >Take a look at > > http://struts.apache.org/userGuide/struts-html.html#javascript > >2nd paragraph gives you the answer. Best regards, -- Shinobu Kawai -- Shinobu Kawai <[EMAIL PROTECTED], [EMAIL PROTECTED]> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]