tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BugRat Mail System <>
Subject BugRat Report #173 has been filed.
Date Wed, 27 Sep 2000 21:04:12 GMT
Bug report #173 has just been filed.

You can view the report at the following URL:


REPORT #173 Details.

Project: Tomcat
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: high
Severity: critical
Confidence: public
   Release: 3.1 Release
   JVM Release: 1.2.2-006
   Operating System: WIndows 2000
   OS Release: SP1
   Platform: x86

<%@ include %> does not function properly, cycle detection incorrect?

<%@ include %>  
directive does not appear to be implemented correctly.

There is no inherent reason why a particular file cannot
be included more than once by a jsp page, except when
perhaps leading to a cyclical relationship.  
However, when I tried to do a simple include of
"footer.html" twice in the same JSP page, i.e.

<%@ include file="footer.html" %> 

I get a:
"Seen file \footer.html already, maybe this is a recursive include?!"
error.  This doesn't make much sense.

Further more, if I change "footer.html" to
"Footer.html", the compiler no longer complains.
I think this was an unintended implementation error.

I am using this case-sensitivity as a hack/workaround
for doing multiple includes now, but this really should
be fixed.

BTW, I tried out Tomcat 3.2 beta 4, and "include"
seems to be completely broken (can't ever find the file).

See below for exact error (no error message on console)

Error: 500
Location: /test/default.jsp
Internal Servlet Error:

org.apache.jasper.compiler.ParseException: Seen file \common\Theme\Khaki\footer.html already,
maybe this is a recursive include?!
	at org.apache.jasper.compiler.JspReader.pushFile(, Compiled Code)
	at org.apache.jasper.compiler.JspReader.pushFile(, Compiled Code)
	at org.apache.jasper.compiler.JspParseEventListener.handleDirective(,
Compiled Code)
	at org.apache.jasper.compiler.DelegatingListener.handleDirective(,
Compiled Code)
	at org.apache.jasper.compiler.Parser$Directive.accept(, Compiled Code)
	at org.apache.jasper.compiler.Parser.parse(, Compiled Code)
	at org.apache.jasper.compiler.Parser.parse(
	at org.apache.jasper.compiler.Parser.parse(
	at org.apache.jasper.compiler.Compiler.compile(, Compiled Code)
	at org.apache.jasper.runtime.JspServlet.loadJSP(
	at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(
	at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(
	at org.apache.jasper.runtime.JspServlet.serviceJspFile(
	at org.apache.jasper.runtime.JspServlet.service(, Compiled Code)
	at javax.servlet.http.HttpServlet.service(
	at org.apache.tomcat.core.ServletWrapper.handleRequest(, Compiled Code)
	at org.apache.tomcat.core.ContextManager.service(
	at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(,
Compiled Code)
	at, Compiled Code)
	at, Compiled Code)

View raw message