tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Chaffee <g...@edamame.stinky.com>
Subject Re: [PATCH] Fix for nested <%@ include ... %> bug
Date Mon, 10 Jul 2000 22:46:42 GMT
You're right; I was projecting my own desires on my memory of the
spec. (I'd prefer it if you could get true no-look includes in JSP
somehow).

JSP1.1, Section 2.5.2:
The JSP specification uniformly interprets all these paths in the
context of the Web server where the JSP page is deployed; i.e. the
specification goes through a map translation. The semantics applies to
translation-time phase (i.e. include directives, Section 2.7.6), and
to request-time phase (i.e. to include, Section 2.13.4, and forward,
Section 2.13.5,actions).

I wonder if that means that including inc/b.txt, where b.txt is
identical to your b.jsp, will include ./c.jsp or what...  

I'm not comfortable enough with Jasper to apply your patch, but if
someone else would be so kind...


On Mon, Jul 10, 2000 at 05:16:23PM -0400, Larry Isaacs wrote:
> It has already been acknowledged as a bug according to the spec. (I was on jury duty
today, so I'm not at work to grab text from the old message.)
> 
> If inc/b.jsp contains
> 
> <%@ include file="c.jsp" %>
> 
> then c.jsp is expected to be in the same directory as b.jsp, regardless of who may have
included b.jsp and from where.


-- 
Alex Chaffee                       mailto:alex@jguru.com
jGuru - Java News and FAQs         http://www.jguru.com/alex/
Creator of Gamelan                 http://www.gamelan.com/
Founder of Purple Technology       http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/

Mime
View raw message