Hi,
I am also facing the same problem while trying to download to excel. Plz let
me know what code u have added to solve this problem
--
View this message in context:
http://struts.1045723.n5.nabble.com/Cannot-forward-after-response-has-been-committed-tp5710573p5711663.html
Sent from the Strut
now this problem is solved i added a piece of code the file is
downloading when downloading the file it gives an exception "cannot forward
after response has been committed" .and
i am trying to open the file it says
"the file you are trying to open .xls is in a different format than
specified
ateException: 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 getOut
:40 -0700
> From: tammi...@gmail.com
> To: user@struts.apache.org
> Subject: getOutputStream() has already been called for this response
>
> hi to all,
> please any one help me .i am trying to export some data to excel
> file...while doing this i am getting following exc
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]
at
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:199
StateException: getOutputStream()* has
> already been called for this response when I use *return
> map.findForward("success")* at the end of action method. But this
exception
> wont appear if I return null. As I am not using writer object. But this
will
> not display an err
Hi,
I am getting the *java.lang.IllegalStateException: getOutputStream()* has
already been called for this response when I use *return
map.findForward("success")* at the end of action method. But this exception
wont appear if I return null. As I am not using writer object. But thi
uation.
Dave
--- On Wed, 12/10/08, red phoenix <[EMAIL PROTECTED]> wrote:
> From: red phoenix <[EMAIL PROTECTED]>
> Subject: getOutputStream() has already been called for this response
> To: "Struts Users Mailing List"
> Date: Wednesday, December 10, 2008,
ure in jsp,but I
find it write error information in tomcat6,like follows:
fatal: Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: getOutputStream() has already been called
for this response
at org.apache.catalina.connector.Response.getWriter(Response.jav
9 matches
Mail list logo