IllegalStateException: Response has already been committed
843840Feb 10 2003 — edited Feb 14 2003Hi,
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.