2 Replies Latest reply on Aug 21, 2003 11:31 PM by mortsahl

    JSP Include files

    twutort

      Is there any way to load JSP includes and javascript files from the same relative path? We are doing a port from weblogic we have thousands of JSP's that would need changed if we can not load them from the same root. On my test I had to update my jsp as follows:



      <%@ include file="/wwwroot/includes_jsp/ADMIN/sniffer.shtml" %>

      In application.xml I have the following set:



      <web-uri>SimShop.war</web-uri>
      <context-root>/SimShop/*</context-root>




      Is there anyway I can get the includes to load under this Simshop directory? So it would look like this:

      <%@ include file="/SimShop/wwwroot/includes_jsp/ADMIN/sniffer.shtml" %>

      Tim

        • 1. Re: JSP Include files
          mortsahl

          It's been several months since I worked with Weblogic (6.1) but I don't remember it behaving as your example shows.

          Your root directory is SimShop so everything should be relative to that ....




          <%@ include file="wwwroot/includes_jsp/ADMIN/sniffer.shtml" %>

          Should work the same way with Tomcat.

          • 2. Re: JSP Include files
            mortsahl

            That's assuming, of course, that you've got a top level directory in your war named wwwroot.

            BTW, you really should use



            instead of

            <script language="JavaScript" ...>