Andrew, Perhaps you might be able to take a quick peek at my demo web app to see if there's any way of getting this working, or at least to give a rudimentary explanation as to why it won't (or shouldn't) work. It is worth noting that this very war file was deployed on Bea Weblogic 6.1 and it works with no problems.
I've included my demo war file. It's fairly minute (3K) so it shouldn't be to
hard to review
The Context entry for this app is in ,y conf/server.xml as follows:
<!-- ServerTest Context -->
<Context path="/ServerTest"
docBase="C:/jakarta-tomcat-4.0.4/deploy/ServerTest.war" debug="0"
reloadable="true" CrossContext="true">
</Context>
Thanks in advance
...Paul
Andrew Conrad wrote:
> So you are trying to leave your current Context and go into the base
> context?
>
> Have you set your Context attribute "CrossContext" to true?
>
> Have you tried making a subdirectory in your current Context, place this
> file with the relative include in it, and tried to request the file from
> the base of the current context to see if that has any problems?
>
> - Andrew
>
> -----Original Message-----
> From: Paul landolt [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 11:19 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 4.0.3 and relative path includes.
>
> Hello All. I am a New poster, so I hope I'm following proper protocol.
>
> I am having trouble with relative path @includes in Tomcat 4.0.3. An
> include from the same directory is fine, as is an include from a
> sub-directory, like so:
>
> <%@include file="inc.jsp"%>
> <%@include file="test2/inc.jsp"%>
>
> However, trying to include from a higher directory generates a JSP
> compile error. The JSP code:
>
> <%@include file="../inc.jsp"%>
>
> generates the following error message:
>
> org.apache.jasper.compiler.CompileException:
> /testdir/test2/index.jsp(5,0) File "../inc.jsp" not found
>
> (There's lots more to the dump, but I didn't think it was pertinent. And
> yes, the file IS there)
>
> So, here are my questions:
>
> 1) Is this a known issue? Have other people encountered this?
> 2) Is this a bug or a Spec feature? If a bug is there a bug report
> pending on this?
> 3) Is there a viable workaround for this?
> 4) Is there a mechanism in JSP to determine the current directory (and
> therefor build up an absolute path)?
>
> Thanks
>
> ...Paul
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
ServerTest.war
Description: Binary data
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
