If I do it like this, I never have to worry about generating it and copying it into another file when I upgrade.
It takes one step out of the list of things to do when upgrading. Well, it would have. ;)
The downside is that it might represent a small performance hit. I haven't done any performance testing yet. However as long as the browser caches it, it should only be called once per user session.
Adam
On 03/09/2004 02:34 PM David Graham wrote:
The typical use case is to generate the static javascript once and store it in a file. I don't understand why you would need to generate the static javascript multiple times.
David
--- Adam Hardy <[EMAIL PROTECTED]> wrote:
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?
Adam
-- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
__________________________________ Do you Yahoo!? Yahoo! Search - Find what you’re looking for faster http://search.yahoo.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
