struts2 的響應response異常

java.lang.IllegalStateException: Cannot call sendError() after the response has been committedjava

 

return SUCCESS;這表明着轉向,須要response的,而response.write();在輸出時時已經committed,不能再response一次,當把return SUCCESS;改爲return null;問題就解決了,但顯示空白的頁面,因此能夠在respnse中控制頁面跳轉。spa

相關文章
相關標籤/搜索