What is the use of response.sendRedirect()?
while using respone.sendRedirect("page.jsp")
it wa开发者_运维百科s showing java.lang.IllegalStateException
, while in some pages it was executing properly. How can I avoid this exception? For more details I passed yesterday a question that was simillar to this.
respone.sendRedirect
will throw java.lang.IllegalStateException
if your response is already committed. You have either manually flush the buffer or it was automatically flushed because it was full. To avoid this, either increase the buffer size and make sure that you are not flushing it or call respone.sendRedirect
early.
精彩评论