tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amos Shapira <amos.shap...@webcollage.com>
Subject RE: mutliple <%@ include%>s
Date Wed, 26 Jul 2000 19:45:41 GMT
Haven't tried this, but what about including .html files instead?

(I have a feeling I said something silly, but it's 22:45 here and
I'm just waiting for an opportunity to go home...:)

Cheers.


> -----Original Message-----
> From: Y Morahg [mailto:ymorahg@gist.com]
> Sent: Wednesday, July 26, 2000 10:28 PM
> To: tomcat-user@jakarta.apache.org
> Subject: FW: mutliple <%@ include%>s 
> 
> 
> Okay,
> 
> I've attached two files. includetest.jsp is the page that 
> tries to include
> sometext.jsp while sometext.jsp just has some HTML in it.
> 
> Trying to compile includetest.jsp gives an error like the one in the
> original message.
> 
> Any help would be greatly appreciated!
> 
> -Yoav
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Amos Shapira [mailto:amos.shapira@webcollage.com]
> Sent: Wednesday, July 26, 2000 3:03 PM
> To: 'tomcat-user@jakarta.apache.org'
> Subject: RE: mutliple <%@ include%>s -- full message
> 
> 
> What about a sample page?
> 
> From the look of it, it sounds like yet another Tomcat attempt
> to protect its users from doing mistakes....
> 
> 
> 
> > -----Original Message-----
> > From: Y Morahg [mailto:ymorahg@gist.com]
> > Sent: Wednesday, July 26, 2000 9:56 PM
> > To: tomcat-user@jakarta.apache.org
> > Subject: RE: mutliple <%@ include%>s -- full message
> >
> >
> > 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.handleDirecti
> > ve(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.loadIfN
> ecessary(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.pro
> > cessConnection
> > (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
> >
> >
> 

Mime
View raw message