-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 raghu88,
On 9/4/12 2:25 AM, raghu88 wrote: > i am trying to export some data to excel file...while doing this i > am getting following exception: > Servlet.service() for servlet action threw exception: > java.lang.IllegalStateException: getOutputStream() has already been > called for this response at > org.apache.catalina.connector.Response.getWriter(Response.java:598) > > [:6.1.0.Final] Why are you calling response.getWriter() when you want to export Microsoft Excel (binary) data? You want to be using getOutputStream anyway, so you should switch. The problem is that getOutputStream has been called already for this response, and so you can't use a Writer to generate a response instead. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlBIyckACgkQ9CaO5/Lv0PCWdQCeOha4wFSe4opK3d00FLJ6GK7V nqAAn3M0OZuC2G0yZdG4T4R1vWZ4C4mU =o8DH -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org