tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nzindian <vj...@hotmail.com>
Subject Why cant I access a folder at root level which contains Java Script
Date Sat, 03 Apr 2010 20:57:08 GMT

Hi,

Im trying to use a javascript WYSIWYG editor in a JSP page.

The JSP is in the following directory:
apache-tomcat-5.5.28/webapps/SimpleBlog

The Java script is in this directory:
apache-tomcat-5.5.28/webapps/SimpleBlog/js

The JSP contains the following code to include the JS file:
<script language="JavaScript" type="text/javascript"
src="js/scripts/wysiwyg.js"></script>
<script language="JavaScript" type="text/javascript"
src="js/scripts/wysiwyg-settings.js"></script>

and it doesnt work,

Ive also tried adding a backslash before the js in the "src=".

However if I copy the JSP into the js folder (and remove the "js" from the
"src=") then it works!

Why can the JSP see the "js" folder?

Thanks

-- 
View this message in context: http://old.nabble.com/Why-cant-I-access-a-folder-at-root-level-which-contains-Java-Script-tp28129493p28129493.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message