tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Y Morahg" <>
Subject RE: mutliple <%@ include%>s -- full message
Date Wed, 26 Jul 2000 18:56:05 GMT
Here it is again, for anyone who got the cutoff message...


 -----Original Message-----
From: 	Y Morahg []
Sent:	Wednesday, July 26, 2000 1:30 PM
To:	''
Subject:	 mutliple <%@ include%>s -- full message


I posted this the other day, but never got an answer.

I'm using a .jsp page that wants to include a color key at the top and the
bottom of the content. Under ServletExec it accomplished this by putting the
colorkey in a file (colorkey.jsp) and using a static include (<%@ include%>)
to include the file at the top and also at the bottom. The problem is that
Tomcat complains that it has already seen this page (I get the error
included below). Is there anything wrong with statically including a page
twice on the same page? If so, how would I accomplish what I want to do in

Thanks in advance,

org.apache.jasper.compiler.ParseException: Seen file
/gist/templates/colorkey.jsp already, maybe this is a recursive include?!
	at java.lang.Throwable.fillInStackTrace(Native Method)
	at java.lang.Throwable.fillInStackTrace(Compiled Code)
	at java.lang.Throwable.(Compiled Code)
	at java.lang.Exception.(Compiled Code)
	at javax.servlet.ServletException.(Compiled Code)
	at org.apache.jasper.JasperException.(Compiled Code)
	at org.apache.jasper.compiler.ParseException.(
	at org.apache.jasper.compiler.JspReader.pushFile(Compiled Code)
	at org.apache.jasper.compiler.JspReader.pushFile(Compiled Code)
	at org.apache.jasper.compiler.DelegatingListener.handleDirective(Compiled
	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(Compiled Code)
	at org.apache.jasper.compiler.Parser.parse(Compiled Code)
	at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
	at org.apache.jasper.runtime.JspServlet.loadJSP(Compiled Code)
led Code)
	at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(Compiled
	at org.apache.jasper.runtime.JspServlet.serviceJspFile(Compiled Code)
	at org.apache.jasper.runtime.JspServlet.service(Compiled Code)
	at javax.servlet.http.HttpServlet.service(Compiled Code)
	at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
	at org.apache.tomcat.core.ContextManager.service(Compiled Code)
(Compiled Code)
	at Code)
	at Code)

Yoav Morahg
Software Engineer
Gist Communications
(212) 965-1999 xt 122

View raw message