Sneaky sneaky - posting a JRun problem on the tomcat-user list :0
Anyhow - It appears you are trying to forward to another page but you
can't because "you" (actually your servlet engine) have already sent
data back to the client. (Why? I don't know. Maybe because you are using
a JSP that has lots of whitespace which is filling up a buffer?)
Once data is sent back the to client - your can't do any of the following:
- Send redirects
- Forward to another JSP (or servlet)
- Set response headers (Cookies, character encoding ...)
Ashish Kulkarni wrote:
> Hi,
>
> I am developing some jsp pages, and i get the
> following error <br>
> java.lang.IllegalStateException: Response has already
> been committed
> at
> allaire.jrun.servlet.JRunResponse.resetContent(../servlet/JRunResponse.java:172)
> at
> allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1201)
> at
>
>allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDispatcher.java:89)<br>
>
> In my jsp, I have some logic which check if there is
> anydata in database or else forwards the request to
> other page,
> so when i m trying to forward the request i get this
> error.
> I tried
> request.getRequestDispatcher("PL1077Display.jsp").forward(request,
> response);
>
> also
> response.sendRedirect("PL1077Display.jsp");
> and also <jsp:forward >
> <br> with same error...
> <br> how can i solve it
> <br>
> Ashish
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>