You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2001/10/28 17:14:43 UTC

DO NOT REPLY [Bug 4477] New: - absolute path names of images and server-side includes

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4477>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4477

absolute path names of images and server-side includes

           Summary: absolute path names of images and server-side includes
           Product: Tomcat 4
           Version: 4.0 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: boerries.ludwig@t-systems.de


Hi,

it seems to me that there is a bug.

I cannot reference images with absolute pathes like I can do this for SSI 
(without referencing the ROOT, so that the html-pages are still portable). 
Absolute pathes work since http://nagoya.apache.org/bugzilla/show_bug.cgi?
id=4326.

In server.xml (I let Tomcat Root Context in comments) I added:
<!-- ANT Context -->
<Context path="/ANT" docBase="ANT" debug="0" privileged="true"/>
                ^^^ ANT is the name of my application

in web.xml of my app (ANT) I added:
<servlet>
<servlet-name>ssi</servlet-name>
<servlet-class>org.apache.catalina.servlets.SsiInvokerServlet</servlet-class >>
<init-param>
<param-name>isVirtualWebappRelative</param-name>
<param-value>1</param-value>
</init-param>
</servlet>

In my html-page I reference the SSI as follows and it works now (since 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4326 rsp. with patch 
24102001):
<!--#include virtual="/infonetIniFiles/header.ini" -->

I reference an image which is in the ANT-directory as follows:
IMG> SRC="/image/choice.gif" BORDER="0" USEMAP="#Choice" WIDTH="469" 
HEIGHT="280">

Tomcat can execute the SSI, but it CANNOT find the image.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>