tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: AW: tomcat4.0.4 and Servlet Specification 2.3 and JSp1.2
Date Wed, 14 Aug 2002 17:32:32 GMT


On Wed, 14 Aug 2002, Ralph Einfeldt wrote:

> Date: Wed, 14 Aug 2002 08:05:26 +0200
> From: Ralph Einfeldt <ralph.einfeldt@uptime-isc.de>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> Subject: AW: tomcat4.0.4 and Servlet Specification 2.3 and JSp1.2
>
> Even if it is supported you have no garantee
> that this will work. If the included page
> writes more content than the buffer size for
> the out stream is, you will get the same exception.
>

Support for <jsp:include ... flush="false"/> is required for all JSP 1.2
containers, including Tomcat 4.x.

Your point about exceeding the buffer size is correct, however ... you
should be making choices about whether to forward early in the page (or,
better, in Java code managed by an MVC framework like Struts
<http://jakarta.apache.org/struts>).

Craig


> > -----Urspr√ľngliche Nachricht-----
> > Von: rsequeira@transentric.com [mailto:rsequeira@transentric.com]
> > Gesendet: Dienstag, 13. August 2002 20:34
> > An: Tomcat Users List
> > Betreff: Re: tomcat4.0.4 and Servlet Specification 2.3 and JSp1.2
> >
> > I don't think the flush= false is supported as yet.
>
> <snip/>
>
> > Does tomcat4.0.4 follow servlet specifications 2.3 and
> > jsp 1.2 if yes then can some one explain the following
> > as per these specification
> >  <jsp:include page="common.jsp" flush="true" />
> >  <% if (someCondition) { %>
> >    <jsp:forward page="another.jsp" />
> >  <% } %>
> >
> >  the above code will give error, but if u make the
> >  flush value="false", it must work, and not give
> >  error.???
> >  but when i tried it in jsp it gives my illleagal
> >  state  error, saying cannot forward after sumbitting
> >  response.
>
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message