tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Yuan <jun...@astro.as.utexas.edu>
Subject Bug report
Date Fri, 13 Oct 2000 04:50:44 GMT

Hi, I just filed a bug report on the web site and bug ID is #258. However,
I cannot view all the "how to reproduce" and "workaround" fields I posted
in the display page. Just to make sure that they are delivered properly. I
attach them below.

Thanks
Juntao Yuan

> To test, I constructed a directory structure like this:
> 
> jsp/index.jsp
> jsp/foo/part1.jsp
> jsp/foo/part2.jsp
> 
> [1]. If I only include one file, it works:
> 
> --------------Start Working index.jsp--------------------
> <html><body>
> <%@ include file="foo/part1.jsp" %>
> </body></html>
> -------------End Working index.jsp-----------------------
> 
> [2]. If I try to include both files with their correct path names, it
> breaks:
> 
> ------------Start non-Working index.jsp-----------------
> <html><body>
> <%@ include file="foo/part1.jsp" %>
> <%@ include file="foo/part2.jsp" %>
> </body></html>
> -----------End non-Working index.jsp-------------------
> 
> [3]. However, I can include two files successfully using absolute paths
> OR something like this:
> 
> -----------Start Working index.jsp---------------------
> <html><body>
> <%@ include file="foo/part1.jsp" %>
> <%@ include file="part2.jsp" %>
> </body></html>
> ----------End Working index.jsp-----------------------
> 
> I think it is pretty clear that when the complier processs the first
> "include" it changed its path to the include file directory ("foo") and
> never changed back after the include operation is done. I believe this is
> a bug ... My code example [2] works on Tomcat 3.1 correctly.



Mime
View raw message