You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Milan Duriancik <mi...@tempest.sk> on 2000/03/14 10:17:38 UTC

sendRedirect

Hello,

After executing response.sendRedirect(...) in a JSP page I get a strage
error (somtimes) with tomcat 3.1 Beta.
This page worked perfectly with tomcat 3.1M1.
Is this a bug or my page is incorrect?

-----------------------------------------------
Document moved

This document has moved here.

Error: 500

Location: /main.jsp

Internal Servlet Error:

java.lang.IllegalStateException: Cannot forward as OutputStream or Writer
has already been obtained
        at
org.apache.tomcat.core.RequestDispatcherImpl.forward(RequestDispatcherImpl.java,
Compiled Code)
        at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java,
Compiled Code)
        at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java,
Compiled Code)
        at _0002fmain_0002ejspmain_jsp

-----------------------------------------------



--
----------------------
Milan Duriancik
Tempest s.r.o., Hanulova 5/B,
Bratislava, Slovakia
GSM: ++421 905 466 201
Work: ++421 7 69 25 41 24