struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Fetyko <ja...@phase2online.com>
Subject Sending response to browser as a ZIP
Date Fri, 26 Jul 2002 15:33:10 GMT
To correct my mistake (pointed out by from Eddie - thank you), here we 
go (again):

Hi all,

I'm looking for some advice or solution that'd help me send the response 
to the browser as a zip file. I did found a tag that does it on :

http://www.servletsuite.com/servlets/opttags.htm

but I'm getting some errors while the page is rendered ( see bellow ), 
so I'm looking for a different way to do it. Does anybody know how to ?

My config is :
Tomcat 4.1.7 Beta
Java 1.4.0_01-b03
Struts

The error:

2002-07-26 06:46:45 StandardWrapperValve[action]: Servlet.service() for 
servlet action threw exception
org.apache.jasper.JasperException: java.io.IOException: Cannot flush a 
closed output stream
     at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:246)
     at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
     at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
     at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
     at 
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)
     at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
     at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
     at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
     at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
     at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
     at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350)
     at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
     at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
     at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
     at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
     at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
     at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
     at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
     at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
     at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1040)
     at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151)
     at java.lang.Thread.run(Thread.java:536)
----- Root Cause -----
javax.servlet.ServletException: java.io.IOException: Cannot flush a 
closed output stream
     at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:492)
     at org.apache.jsp.ship$jsp._jspService(ship$jsp.java:322)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:202)
     at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
     at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
     at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
     at 
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)
     at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
     at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
     at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
     at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
     at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
     at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350)
     at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
     at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
     at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
     at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
     at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
     at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
     at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
     at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
     at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1040)
     at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151)
     at java.lang.Thread.run(Thread.java:536)



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message