차근차근/JAVA JSP

Cannot forward after response has been committed

예쁜꽃이피었으면 2014. 7. 26. 01:07

java.lang.IllegalStateException: Cannot forward after response has been committed -

http://imovator.tistory.com/entry/javalangIllegalStateException-Cannot-forward-after-response-has-been-committed-error

 

저 에러는 페이지를 포워드하기 이전에 응답객체에 의해 이미 페이지가 작성되었다라는 뜻

저 분 블로그에는 super.doPost(req,resp);만 지워주면 된다고 써있는데..

난 지워봤자..에러가 난다. 더 찾아봐야겠다.

 

 

 

 

 

 

 

http://soosooin.tistory.com/147

java.lang.IllegalStateException: Cannot forward after response has been committed 라는 에러 메시지가 나올 때는

response.sendRedirect("");후에

return;을 해야한다고 한다..

난 안된다.

 

 

 

 

부장님 말씀으로는

implements되어 있는 것과 모양이 달라서 라고 하신다.

더 찾아봐야겠다.

 

반응형