tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Danno Ferrin <shem...@earthlink.net>
Subject Re: a tomcat bug?
Date Fri, 19 May 2000 17:44:22 GMT
that is basically the code that the tag wraps.  It actually calls
pageContext.handleInclude(...) (or some call like it) which in turn does
something like the code snipped you just wrote.  Hotspot should optimize
that out after an hour.

--Danno

Pete Marsden wrote:
> 
> The other way to handle includes in a JSP is:
> 
>         RequestDispatcher rd =
> getServletContext().getRequestDispatcher("page-to-include.jsp");
>         rd.include(request, response);
> 
> -----Original Message-----
> From: Danno Ferrin [mailto:shemnon@earthlink.net]
> Sent: Friday, May 19, 2000 12:34 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: a tomcat bug?
> 
> the <%@ are included at translation time, before compilation and before
> the condition is tested, so both includes will happen.  Do both includes
> work properly?  meaning can you view first.jsp and second.jsp?  My guess
> is that the unbalanced brackets are occurring in those pages.  Perhaps
> the effect you want is <jsp:include file="first.jsp"> so that the files
> are only executed at run-time, otherwise both of the pages will appear
> in the generated servlet.
> 
> --Danno
> 
> Jan Pinkert wrote:
> >
> > i 've written an several jsps ,one including another and with decisions
> > in the jsp what to include
> >
> > it looks like that
> >
> > <% if ( this is true?) {%>
> >     <%@ include file ="first.jsp"%>
> > <%}else{%>
> >     <%@ include file ="second.jsp"%>
> > <%}%>
> >
> > looks very simple but the jspCompiler isn't able to set the brackets in
> > the generated work\path\servlet.java
> > in the right way it seems it always forgets to close some brakets
> >
> > had anybody else same experience
> > can someone help me
> > thanks
> > jan
> >
> > --------------------------------------------------------------------------
> > To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commmands, email: tomcat-user-help@jakarta.apache.org
> 
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
> 
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org

Mime
View raw message