Wonder if anyone had run into this before: (we are using jswdk1.0.1)
We have the .jsp pages organized like this:
/top.jsp
/top.js
/dirA/one.jsp
/dirA/one.js
/dirB/two.jsp
We use tags like:
<script language="JavaScript" src="dirA/one.js"></script>
<script language="JavaScript" src="top.js"></script>
in top.jsp and
<script language="JavaScript" src="one.js"></script>
in one.jsp.
When in dirA/two.jsp, we have <jsp:forward page="../top.jsp">. When this
happens, I will get the error message from the browser(netscape):
Error: 404
File Not Found
/dirB/dirA/one.js
and internet explorer will display the "Script Error" dialog.
How can I change the server's idea of "current directory" so the
<jsp:forward> work as expected? Any suggestion? The main reason for using
relative path is the ability to move the whole tree to a different directory
so using absolute path is out.
Thanks
-Kelvin
===========================================================================
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