Error getWriter() was already called in downloading
if i will use window.open it works fine. But when ii want to use request dispather or call new class method i am getting this
error. The thing is that before downloading starts i am using resonse for writing some HTML content after finishing that it should start
downloding. If use out.close() before download method then it is not calling downlaod method but writing html content. Strange same things works
fine in window.open WHY?.
Error. The server encountered an unexpected condition which prevented it from fulfilling the request.
java.lang.IllegalStateException: getWriter() was already called
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.(Throwable.java:94)
at java.lang.Exception.(Exception.java:42)
at java.lang.RuntimeException.(RuntimeException.java:47)
at java.lang.IllegalStateException.(IllegalStateException.java:45)
at newatlanta.servletexec.Response.getOutputStream(Response.java)
at DownloadClass.DownloadForm(DownloadClass.java:23)
at MainServlet.uploadForm(MainServlet.java:1094)
at MainServlet.checkOut(MainServlet.java:421)
at MainServlet.doGet(MainServlet.java:112)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:715)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
at newatlanta.servletexec.ServletExec.processServletRequest(ServletExec.java)
at newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java)
at newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java)

