From ymorahg@gist.com Wed Jul 26 18:53:31 2000 Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 18749 invoked from network); 26 Jul 2000 18:53:31 -0000 Received: from mailhost.gist.com (206.41.1.135) by locus.apache.org with SMTP; 26 Jul 2000 18:53:31 -0000 Received: from devpwks001 ([206.41.30.2]) by mailhost.gist.com (Post.Office MTA v3.5.3 release 223 ID# 0-66824U200L100S0V35) with SMTP id com for ; Wed, 26 Jul 2000 14:53:23 -0400 Reply-To: From: "Y Morahg" To: Subject: RE: mutliple <%@ include%>s -- full message Date: Wed, 26 Jul 2000 14:56:05 -0400 Message-ID: <8DC09D493A3ED4118DC300508BAC980719DBA1@gsrv2003.gist.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 In-Reply-To: <8DC09D493A3ED4118DC300508BAC980719DB9D@gsrv2003.gist.com> X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N 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