Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

IllegalStateException: Response has already been committed

843840Feb 10 2003 — edited Feb 14 2003
Hi,
When I do the sendRedirect() after servlet inlcude I am getting the Exception "java.lang.IllegalStateException: Response has already been committed".
This is working fine in some versions of Jrun like Version 3.1.48037, 3.1.26414.
But it is throwing the above exception in Jrun Version 3.1.15506.

This is what I am doing in my servlet
{
...
...
RequestDispatcher rd = req.getRequestDispatcher("RequestServlet");
rd.include(req, res);
...
...
res.sendRedirect(res.encodeRedirectURL(actionString));
}
This exception is happening at res.sendRedirect() line.

Please let me know what is wrong with it.

Thanks
SriM.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 14 2003
Added on Feb 10 2003
7 comments
357 views