Sorted, it was a bit dumb.
The .js files were held below the WEB-INF directory, and everything below there is protected.
I have moved the files to a new JavaScript directory just under the app directory and set
<script language="JavaScript" src= "/APP/JavaScript/code.js"></script>and it it works.
I am using Struts 1.1, Tomcat 4.1.12 on Windows XP
I am trying to add some JavaScript to a JSP page To do this I am including one or many JavaScript source files using the following style;
<script language="JavaScript" src="/pages/templates/code.js"></script>
<script type="text/JavaScript"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.