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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to