You shouldn't include the context path in your URI to the included file.
The include occurs at translation time, meaning during the creation of the
background servlet which represents the JSP page and code. The file path
is rooted at the context root and may not extend outside the context root.
You should use <%@include file="/Common/JavaFooter.inc" %>.


On Wed, 6 Nov 2002, Panos Konstantinidis wrote:

>      Sorry
>
>    --- Panos Konstantinidis <[EMAIL PROTECTED]> wrote:
>    >   Thank you Donnie for your time, but unfortunatelly
>    > it did not help. I have added the line:
>    >
>    > <Context path="/content"
>    > docBase="C:\Tomcat4.1\webapps\content"/>
>    >
>    >   in my server.xml file, restarted Tomcat but when
>    > my
>    > JSP page has the following line:
>    >
>    >   <SPAN CLASS="Footer"><%@ include file =
>    > "/content/Common/JavaFooter.inc"%></SPAN>
>    >
>    >   I am getting the error message:
>
>      the following
>
>    > org.apache.jasper.JasperException:
>    > /index.jsp(593,22)
>    > File "/wtgContent/English/Common/JavaFooter.inc" not
>    > found.
>
>
>      should be:
>
>     org.apache.jasper.JasperException:
>     /index.jsp(593,22)
>     File "/content/Common/JavaFooter.inc" not
>     found.
>
>       The previous one was actually taken from another
>    browser window (the same problem there as well, but
>    still it is better to make things clearer).
>
>      Thank you.
>
>    __________________________________________________
>    Do you Yahoo!?
>    HotJobs - Search new jobs daily now
>    http://hotjobs.yahoo.com/
>
>    --
>    To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
>    For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
>


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

Reply via email to