tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DonS, Choi" <dsc...@dreami.co.kr>
Subject can't include file <%@ include file="/a.jsp">
Date Fri, 24 Mar 2000 13:00:38 GMT
Hi,
I'm using apache1.3.12+tomcat3.1 in solaris 2.6 sparc machine

I have a file that path is  /usr/local/apache/htdocs/stockinfo/analysis/b.jsp
And  another file is /usr/local/apache/htdocs/a.jsp

In b.jsp file,

<%@ include file="../../a.jsp %>          works fine.
But
<%@ include file="/a.jsp" %>            doesn't work

What's the problem?

My server.xml file is 
=========================
<!-- Add "home" attribute if you want tomcat to be based on a different directory
         "home" is used to create work and to read webapps, but not for libs or CLASSPATH.
         Note that TOMCAT_HOME is where tomcat is installed, while ContextManager home is
the
         base directory for contexts, webapps/ and work/
      -->
    <ContextManager debug="0" workDir="work" >
        <!-- ContextInterceptor className="org.apache.tomcat.context.LogEvents" / -->
        <ContextInterceptor className="org.apache.tomcat.context.AutoSetup" />
        <ContextInterceptor className="org.apache.tomcat.context.DefaultCMSetter" />
        <ContextInterceptor className="org.apache.tomcat.context.WorkDirInterceptor" />
        <ContextInterceptor className="org.apache.tomcat.context.WebXmlReader" />
        <ContextInterceptor className="org.apache.tomcat.context.LoadOnStartupInterceptor"
/>
        <!-- Request processing -->
        <RequestInterceptor className="org.apache.tomcat.request.SimpleMapper" debug="0"
/>
        <RequestInterceptor className="org.apache.tomcat.request.SessionInterceptor" />
        <RequestInterceptor className="org.apache.tomcat.request.SecurityCheck" />
        <RequestInterceptor className="org.apache.tomcat.request.FixHeaders" />

        <Connector className="org.apache.tomcat.service.SimpleTcpConnector">
            <Parameter name="handler"         value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
            <Parameter name="port" value="8080"/>
 </Connector>

        <Connector className="org.apache.tomcat.service.SimpleTcpConnector">
            <Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
            <Parameter name="port" value="8007"/>
        </Connector>

        <!-- example - how to override AutoSetup actions -->
        <!-- Context path="" docBase="webapps/ROOT" debug="0" reloadable="true" -->
        <Context path="" docBase="/usr/local/apache/htdocs" debug="0" reloadable="true"
>
        </Context>
===============================================================================

My tomcat.conf file is
===============================


Mime
View raw message