getOutputStream() has already been called for this response

原因分析: 產生這樣的異常原因:是web容器生成的servlet代碼中有out.write(""), 這個和JSP中調用的response.getOutputStream()產生衝突.即Servlet規範說明, 不能既調用response.getOutputStream(),又調用response.getWriter(), 無論先調用哪一個,在調用第二個時候應會拋出IllegalStateExce
相關文章
相關標籤/搜索