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
e relevant
> code pieces?
>
> Regards,
> David
>
> -Original Message-
> From: brian papa [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 21, 2006 4:47 PM
> To: user@struts.apache.org
> Subject: using tiles and setting a cookie
>
>
> I'm having a pr
?
>
> Regards,
> David
>
> -Original Message-
> From: brian papa [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 21, 2006 4:47 PM
> To: user@struts.apache.org
> Subject: using tiles and setting a cookie
>
>
> I'm having a problem setting a cookie insi
give the controller method and some relevant
code pieces?
Regards,
David
-Original Message-
From: brian papa [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 21, 2006 4:47 PM
To: user@struts.apache.org
Subject: using tiles and setting a cookie
I'm having a problem setting a cook
I'm having a problem setting a cookie inside of a Controller class.
My custom controller extends from the base Controller class. Inside of
my class, I'm simply trying to set a cookie to the
HttpServletResponse. Inside of a Strut Action class, it's been working
just fine. But in the controller, the
10 matches
Mail list logo