You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ashish Kulkarni <ku...@yahoo.com> on 2002/08/12 22:09:29 UTC
tomcat4.0.4 and Servlet Specification 2.3 and JSp1.2
Hi,
Is tomcat4.0.4 using servlet specification 2.3 and JSP
specification1.2??
Because 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.
Ashish
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: tomcat4.0.4 and Servlet Specification 2.3 and JSp1.2
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Tue, 13 Aug 2002, Ashish Kulkarni wrote:
> Date: Tue, 13 Aug 2002 10:25:27 -0700 (PDT)
> From: Ashish Kulkarni <ku...@yahoo.com>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> To: Tomcat Users List <to...@jakarta.apache.org>
> Subject: tomcat4.0.4 and Servlet Specification 2.3 and JSp1.2
>
> Does tomcat4.0.4 follow servlet specifications 2.3 and
> jsp 1.2
Yes.
> 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.
> Ashish
>
As the servlet spec will tell you, it is not legal to do a
RequestDispatcher.forward() -- which is what <jsp:forward> does under the
covers -- after the response has been committed. Using flush="true" on
your include causes the response to be committed.
Craig
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
tomcat4.0.4 and Servlet Specification 2.3 and JSp1.2
Posted by Ashish Kulkarni <ku...@yahoo.com>.
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.
Ashish
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>