tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: Include directive in Tomcat4
Date Wed, 10 Jul 2002 10:52:19 GMT
This question is more suited for the User List.

I believe test is setup as a "webapp" in your installation.
Meaning: you should not include it in any kind of include directive. So
    <%@ include file = "/test/hello.html" %>
should be
    <%@ include file = "/hello.html" %>
or
    <%@ include file = "hello.html" %>


Alfian Hadi wrote:
> Hi all,
> 
> I am facing problem using include directive in tomcat 4.0.4. Here is the
> situation:
> 
> I create a new folder named: test under webapps (webapps/test). The folder
> test contains two files:
> - index.jsp
> - hello.html
> 
> In index.jsp, this is what I have for the directive:
> <%@ include file = "/test/hello.html" %>
> 
> Then I received this error:
> org.apache.jasper.compiler.CompileException: /index.jsp(3,38) File
> "/test/hello.html" not found
> 
> It seems that I cannot use the absolute path for include directive with
> tomcat. This is just a simple sample. Actually I have a working JSP
> application that I need to deploy on tomcat 4 and it cannot work because the
> application use a lot of absolute path for the include directive. Any ideas
> ? Thanks.
> 
> 
> - Alfian -
> 
> 


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message