Getting Exception-java.lang.IllegalStateException: getOutputStream() has already been called for this response

后端 未结 3 1260
独厮守ぢ
独厮守ぢ 2020-12-22 09:41

I am new to jsp,when I try to invoke a jsp page by some parameters named cId and passWord,I getting this error,The code I have been trying is given below,I have already gone

3条回答
  •  梦毁少年i
    2020-12-22 09:59

    This is a JSP with scriplet which is converted into a Servlet file. You dont need to call explicitly the response object. If you need to see how a compiled JSP looks like when its deployed , search (Google) how to look for the compiled class(Servlet generated out of JSP) on the server. Since you have already called the method on the response a second invocation is Illegal on the response object

提交回复
热议问题