You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Hugh J. L." <hu...@yahoo.com> on 2002/08/29 08:12:51 UTC

JSP include after redirect. Spec. or bug?

Hi,

<%
response.sendRedirect("b.jsp");
String left_page="c.jsp";
%>
<jsp:include page="<%=left_page%>" flush="true" />

Running on Tomcat 4, it is ok. Running on Tomcat 3.3,
the result is correct but there is error message on
console. Of course, the include in this example is
meaningless, but this jsp is extracted from large jsp
file from client. Is it a limitation of JSP 1.1 or a
trivial bug?

Thanks.

Hugh


__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: JSP include after redirect. Spec. or bug?

Posted by Bill Barker <wb...@wilshire.com>.
Well, it's a bug, but it is in the application programmer's code.  There
should be a:
return;
after the 'response.sendRedirect("b.jsp")' line.


----- Original Message -----
From: "Hugh J. L." <hu...@yahoo.com>
To: "Tomcat Developers List" <to...@jakarta.apache.org>
Sent: Wednesday, August 28, 2002 11:12 PM
Subject: JSP include after redirect. Spec. or bug?


> Hi,
>
> <%
> response.sendRedirect("b.jsp");
> String left_page="c.jsp";
> %>
> <jsp:include page="<%=left_page%>" flush="true" />
>
> Running on Tomcat 4, it is ok. Running on Tomcat 3.3,
> the result is correct but there is error message on
> console. Of course, the include in this example is
> meaningless, but this jsp is extracted from large jsp
> file from client. Is it a limitation of JSP 1.1 or a
> trivial bug?
>
> Thanks.
>
> Hugh
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.yahoo.com
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>