开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜