Mailing List
Forum Home
Maven - Project building tool
Axis - Java SOAP implementation
Lucene - Full-featured text search engine APIs
Cocoon - MVC web framework based on XML/XSL
Fop - Create PDF, PCL, PS, SVG, XML driven by XSL formatting objects.
Log4J - A log library
POI - Java Excel, Word and other Microsoft Office files manipulating library
Oracle database error code ...
log4j warning: No appenders could be found
java security AccessControlException: access denied (java io FilePermission clie
java lang InstantiationException: org apache tools ant Main
Apache Axis Tutorial
Subject: Struts <logic iterate >
log4j properties How to parse outpu to multiple files
configuring log4j with BEA Weblogic 8 1
How to use XSL FOP Java together
JSP precompile
Proposal: Adding jar manifest classpath in jar and war plugins
Servlet File Download dialog problem (IE6,Adobe 6 0)
java security AccessControlException: access denied (java io FilePermission
Unsupported major minor version 48 0 problem while running the an
   telope task
Subject: axis wsdl2java Ant Task usage
net sf hibernate MappingException: Error reading resource: test/User hbm xml
Building EAR ANT Script for websphere 5 0
Classpath problem
jsp data into Excel
Jboss 3 2 3+ vs Tomcat Axis Question
RE: How to include jars and add them into the MANIFEST MF/Class Path
Printing problem
Subject: InstantiationException
Couldn 't find trusted certificate
Please : How can one install ant 1 6 0 under Eclipse 2 1 ?
Excel: Too many different cell formats
Subject: AXIS: tomcat timeout ?
1 3 final: now giving me java io FileNotFoundException (Too many
open files)
XDoclet, Struts and Maven: Where to start? SOLUTION
Subject: Running junit tests fails
Subject: Excel, Struts and Downloading

Subject: Excel, Struts and Downloading

2007-05-27       - By Jon Wynacht

Reply:     1     2     3     4  


I used to run Struts 1.2.9, POI 2.5 and could generate Excel files  
from a servlet and download them without issue. I recently upgraded  
to Struts 1.3.5 and POI 3 and it looks like I broke that capability.  
I'm getting the following error:

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

I've searched through the Net and the archives here for info but  
nothing really seems to fit for my situation; it's mostly JSP.

I'm calling an Action servlet which makes a call to the model and  
gets some data, creates a new workbook and then does this:

                response.addHeader("Content-description", "Event  
                ServletOutputStream stream = response.getOutputStream
    forward = "SUCCESS";
    return mapping.findForward(forward);

It's what I did before I upgraded and things worked fine. Now they don't

Any ideas? Am I missing something really obvious or was I bending the  
rules a bit and taking chances with my data in my previous config?

Cheers and thanks,


Jon Wynacht

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: poi-user-unsubscribe@(protected)
Mailing List:
The Apache Jakarta Poi Project: