Hi Ranchers,
I am having a HTML page, which is devided as frames. There is 3 frames in this page named as
first,
left and
content. In content frame I have a login page. Here when user clicks on login button, In content frame, some other
jsp page should gets displayed(say the jsp page is welcome.jsp).
For this, Previously I have used
But the problem here is..If I login once..it is coming properly. If I click on some other button in another frame and logout..Now in case if I login again an error is coming like..
HTTP Status 500 description The server encountered an internal error() that prevented it from fulfilling this request.
exception java.lang.IllegalStateException: Cannot forward after response has been committed.
...
...
As shown above the error is coming..So what I did means instead of using sendRedirect() method, I simply assigned the frame location to "/abc/welcome.jsp". Now it is working fine..But I just want to know what was the problem with sendRedirect() method. In which case, the above error will come?
Can anybody make me known..??
Thanks in Advance,
Shashi.