I have a problem while using response.sendRedirect() in my Jsp Page.
Scenario:
I have a Jsp page, which has static and dynamic includes
In one of the dynamic include file, i am using response.sendRedirect() to
redirect to another page.
A runtime IllegalStateException is thrown in this case,
as It says the response has already been committed.
But if the response.sendRedirect() works fine when used directly in the main JSP
Page.
that too.. when the buffer size is increased
Questions
1. What is the reason behind this exception.
2. what would be a better Solution this problem?