Hi all,

        Strange question. I've been developing my latest project under the
ROOT directory of Tomcat.
        Currently, I'm moving my stuff to a integration server and I noticed
some strange errors.

        When using forward or redirects with the RequestDispatcher, I'm
calling the pages as /folder/mypage.jsp.
        When including a script, I'm doing (on jsp side) <script
src="/scripts/myscript.js"></script>

        In the development's ROOT directory.. both work fine. But moving to
the integration server, we had to package things up into wars and ears etc.
Now that the context name is changed, I get funny results.
        MyApp.ear obviously is accessed as http://myserver/MyApp/ followed
by the page that I'm accessing.
        That works fine for the jsps even though I used the / to represent
going back to the root directory.
        However, scripts can not be picked up! as well as images or anyother
standard html references that use the / in front.

        A look at error files so that in the cases of jsps and servlets. The
compiler addes /MyApp to the front of what u are calling. In the case of
html references, it does not! Even though they use the SAME mechanism for
writing out files!

        Is there a work around for this (without having to remove all the /s
:-P)?

Thanx,
-Tim

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to