set, I don't know if that would help or not).
Dave
--- On Sat, 6/14/08, Jeromy Evans <[EMAIL PROTECTED]> wrote:
> From: Jeromy Evans <[EMAIL PROTECTED]>
> Subject: Re: Response already committed when using ActionTag
> To: "Struts Users Mailing List"
> Date:
[EMAIL PROTECTED] wrote:
Hi Jeromy, thanks for the respose.
The response is already committed in the action class (before the Result is
executed). In the execute() method, the result of 'response.isCommitted()'
is true. So I think the response is committed even before getting to the
Result.
A
cc
Subject
Please respond to Re: Response already committed when
"Struts Users using ActionT
[EMAIL PROTECTED] wrote:
I have a JSP that uses an ActionTag to call a Struts 2 action
class directly from the JSP. But in the action class, the HTTP response
has already been committed. This makes it impossible for me to set cookies
from my action class.
I tested this by calling HttpServletR
;s
approval. If received in error, contact the sender and delete them.
-Original Message-
From: Lance [mailto:[EMAIL PROTECTED] Sent: Wednesday,
April 25, 2007 3:47 AM
To: Struts Users Mailing List
Subject: Re: Response already committed
The response is considered committed once you have
ECTED]
Sent: Wednesday, April 25, 2007 3:47 AM
To: Struts Users Mailing List
Subject: Re: Response already committed
The response is considered committed once you have written to the
outputstream (perhaps in a jsp).
Once a response has been comitted, you can not redirect or forward etc.
The
From: Lance [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 25, 2007 3:47 AM
To: Struts Users Mailing List
Subject: Re: Response already committed
The response is considered committed once you have written to the
outputstream (perhaps in a jsp).
Once a response has been comitted, you can not redire
The response is considered committed once you have written to the
outputstream (perhaps in a jsp).
Once a response has been comitted, you can not redirect or forward etc.
The best solution is to redirect before you write anything to the output
stream, sometimes this is not possible.
Another sli
Abhimanyu Koul wrote:
Hi!
I want to set a customized response for every action. ( Actually, I want
to set the header to include cache control for every response) I want it
to be unanimous for all pages. So, can I set it in RequestProcessor or
ActionServlet and how.
Please reply asap.
Just add
It's possible that you aren't using a full Struts
1.1 release. It looks like there were some
changes to the TilesUtil stuff right around the
release of Struts 1.1 which could easily lead to
a problem like this.
(you can see more details by looking at
http://cvs.apache.org/viewcvs.cgi/jakarta
I managed to get a more complete stack trace of the error:
[Servlet Error]-[action]: java.lang.ClassCastException:
org.apache.struts.tiles.TilesUtilImpl
at
org.apache.struts.tiles.TilesRequestProcessor.initDefinitionsMapping(TilesRequestProcessor.java:126)
at
org.apache.struts.tiles.TilesRequ
11 matches
Mail list logo