Adam:

If you're using Struts 1.2.0 or later (or some nightly builds shortly before that) and getting the <script> tags in your static JavaScript, that's a known bug:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27239

I've been hoping that one of the bug reporters could test the patch I attached to that issue, since I never use static javascript. My other deadline has past, so I may have some time to work out a test myself, but I'd just as soon have someone who really uses it confirm that it's correct.

If you're talking about something else, forgive me -- but before February, the tag correctly worked in that the "script" tags were only emitted if dynamicJavascript was true.

Joe



I have put the javascript taglib in its own JSP so that I can call it up

with this:

<script src="staticjavascript.do" type="text/javascript">


The result of staticjavascript.do is meant to be pure javascript, like in a javascript file, without <script> HTML. If the script tags are there, then the browser can't read the javascript.


I changed the JavascriptValidatorTag source to get scriptLanguage="false" to turn off the addition of these tags.

It looks like the scriptLanguage attribute is only for putting the language="Javablah" in the HTML though.

I could put in another attribute, e.g. enclosingScriptTags.

Would you like me to submit an enhancement?


--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining."
-- Jef Raskin


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



Reply via email to