hi there,

I've used the html:javascript tag to have the javascript code generated 
for my form.
I found out that using staticJavascript="false" I can prevent the static 
javascript code from messing up the html head.

To my mind it would be the cleanest solution to refer to the static 
javascript using
<script type="text/javascript" src="validation.jsp"></script>

Unfortunately the html:javascript code doesn't seem to allow to turn off 
the start/end script-tags. 
Looking inside the taglib API 
(struts-1.1/doc/api/org/apache/struts/taglib/html/JavascriptValidatorTag.html) 
it does only include getters for getJavascriptBegin()/getJavascriptEnd() 
but no setters, thus the code generated always looks like:
<script type="text/javascript" language="Javascript1.1"> 
<!-- Begin 
...
</script>

So the only option left seems to have the static javascript generated once 
and copy/paste it to a separate struts-validation.js file. However, if I 
update the struts version later I'll have to redo this.

Does anybody have a better idea for solving this?

Thx
J. Fiala

Reply via email to