You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Y Morahg <ym...@gist.com> on 2000/07/26 19:30:25 UTC

mutliple <%@ include%>s -- full message

Hi.

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
Tomcat???

Thanks in advance,
-Yoav

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.(ParseException.java:75)
	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(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)
	at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(Compi
led Code)
	at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(Compiled
Code)
	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)
	at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Compiled Code)
	at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
	at java.lang.Thread.run(Compiled Code)




---------------------------
Yoav Morahg
Software Engineer
Gist Communications
(212) 965-1999 xt 122
ymorahg@gist.com



RE: mutliple <%@ include%>s -- full message

Posted by Y Morahg <ym...@gist.com>.
Here it is again, for anyone who got the cutoff message...

-Yoav


 -----Original Message-----
From: 	Y Morahg [mailto:ymorahg@gist.com]
Sent:	Wednesday, July 26, 2000 1:30 PM
To:	'tomcat-user@jakarta.apache.org'
Subject:	 mutliple <%@ include%>s -- full message


Hi.

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
Tomcat???

Thanks in advance,
-Yoav

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.(ParseException.java:75)
	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(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)
	at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(Compi
led Code)
	at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(Compiled
Code)
	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)
	at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Compiled Code)
	at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
	at java.lang.Thread.run(Compiled Code)




---------------------------
Yoav Morahg
Software Engineer
Gist Communications
(212) 965-1999 xt 122
ymorahg@gist.com