My HTML page has a javascript include as follows:
<SCRIPT Language="JavaScript" SRC="/jslib/validation.js">
alert("Unable to load script file: validationPage.js");
</SCRIPT>
....
When I converted the same HTML to a JSP, I scripted these lines as
follows:
<%= "<SCRIPT Language='JavaScript' SRC='/jslib/validation.js'>" %>
<%= "alert('Unable to load script file: validationPage.js');" %>
<%= "</SCRIPT>" %>
However, the subsequent HTML after being rendered by the JSP doesnot
seem to know about the javascript source file. I came to this
conclusion because all my calls to functions in the validation.js"
were treated as invalid and not declared/defined.
Can I please get help with this problem?
Vyas Vemu
PS: Earlier I tried all sorts of tricks discussed in this SIG such as
these, but the JSPs did not even compile.
I am running my app. on JavaWebServer2.0
1. <SCR<%= "I" %>PT Language="JavaScript" .......>
2. included a RUNAT="CLIENT" attribute to the script tag.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html