I am calling response.getOutputStream() and initialing it as below in a jsp file.
ServeletOutputStream sos=response.getOutputStream() ;
I commented out sos.flush() and sos.close() , but always it give that exception
at the end of the jsp page.
one more thing I am not calling response.getWriter().
and there is no out.write("\r\n"); in my jsp converted java file,sombody told like if out.write("\r\n"); will call the response.getwriter();