Well it looks like I've found the cause of the problem.
The ServletResponse object passed into my Controller's execute is
wrapped inside of ServletResponseWrapperInclude, which wraps an
instance of org.apache.catalina.core.ApplicationHttpResponse. In that
class, the addCookie() method is overidden
Oops, meant to question the presence of the Response there.
On 2/21/06, Dave Newton <[EMAIL PROTECTED]> wrote:
> brian papa wrote:
> > I'm starting to think now that perhaps I'm doing this in the wrong
> > place. After all the purpose of a controller should simply be to
> > prepare data for render
brian papa wrote:
> I'm starting to think now that perhaps I'm doing this in the wrong
> place. After all the purpose of a controller should simply be to
> prepare data for rendering in a JSP tile. I'm wondering though if this
> is the case what the purpose is of having the HttpServletRequest as a
gt; -Original Message-
> From: brian papa [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 21, 2006 6:59 PM
> To: Struts Users Mailing List
> Subject: Re: using tiles and setting a cookie
>
>
> Yeah that doesn't seem to be the problem, and the ".mysite.com"
: brian papa [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 21, 2006 6:59 PM
To: Struts Users Mailing List
Subject: Re: using tiles and setting a cookie
Yeah that doesn't seem to be the problem, and the ".mysite.com" is
working with an Action anyway... setting the cookie the same
gt; -Original Message-
> From: brian papa [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 21, 2006 6:42 PM
> To: Struts Users Mailing List
> Subject: Re: using tiles and setting a cookie
>
>
> I was unaware of that actually. But, even outside of the debugger the
> cooki
d into that and tried that already. I
made that suggestion since I've
previously read of problems like that on this list.
Regards,
David
-Original Message-
From: brian papa [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 21, 2006 6:42 PM
To: Struts Users Mailing List
Subject: Re: using
I was unaware of that actually. But, even outside of the debugger the
cookie isn't seen on the client side. And it isn't seen on the next
request. Here's some of the code -
In the controller class (it's an abstract class):
public void execute(ComponentContext componentContext,
HttpServletRequest
Brian,
When and where are you looking for a value change with your debugger? You do
know that the cookie won't be seen until
the response ends, right? The NEW cookie is given to the client's browser and
won't be seen by the server until the
client's next request. Can you give the controller me
9 matches
Mail list logo