Have a look at this:
http://www.velocityreviews.com/forums/t124632-struts-set-a-cookie.html
Also, in the past or protocol was to use bean:cookie to set cookies, I'm
actually sure why, but it works reliably.
Z.
> inside Struts(1.x) Action class, within method
>
> public ActionForward(Acti
I also agree with you Dave, +1
Does any one need a guy for a Struts2 project?, i am ready to quit my
current job :))
On 6/12/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- Chris Pratt <[EMAIL PROTECTED]> wrote:
> Sorry, for some reason I was stuck on Struts 2.
It's 'cuz it's so much better :
--- Chris Pratt <[EMAIL PROTECTED]> wrote:
> Sorry, for some reason I was stuck on Struts 2.
It's 'cuz it's so much better :D
> I suspect it may have to do with setting the path or
> domain, but that's just a guess.
+1
d.
--- john lee <[EMAIL PROTECTED]> wrote:
> also check the cookie under c:\document and
> setting\username\cookie, but not there,
Where? My cookies, at least, are stored per-browser,
in various places. Check via the browser. Also check
browser settings to make sure cookies are allowed for
the URL
, 2007 4:42 PM
Subject: Re: response.addCookie not working inside Struts action class
Sorry, for some reason I was stuck on Struts 2. In IE's Internet Options,
on the Privacy tab, click the Advanced... button and check the "Override
automatic cookie handling" checkbox, then set bot
Sorry, for some reason I was stuck on Struts 2. In IE's Internet Options,
on the Privacy tab, click the Advanced... button and check the "Override
automatic cookie handling" checkbox, then set both cookie types to Prompt.
After that, try again and you'll be able to see all the cookies that are
pa
the action is executing, checked.
also check the cookie under c:\document and setting\username\cookie, but not
there,
john
Dave Newton <[EMAIL PROTECTED]> wrote:
I'd check two things first:
1) Make sure the action is actually executing (via
breakpoint or logging)
2) where specifi
I'd check two things first:
1) Make sure the action is actually executing (via
breakpoint or logging)
2) where specifically are you checking to see if the
cookie (physically) exists?
d.
--- john lee <[EMAIL PROTECTED]> wrote:
>
>
> inside Struts(1.x) Action class, within method
>
>
Huh?!
--- Chris Pratt <[EMAIL PROTECTED]> wrote:
> Where'd you get the response? Does your action
> implement ServletResponseAware?
>
> On 6/12/07, john lee wrote:
> > inside Struts(1.x) Action class, within method
> >
> > public ActionForward(ActionMapping mapping,
> ActionForm form,
> >
i have an login.jsp first, then call action class, if success, then action
class forward to different jsp page.
my struts-configure.xml will be as the following:
I even tried both redirect="yes" option and "without" option as well, but
still not see the cooke generate.
Where'd you get the response? Does your action implement
ServletResponseAware?
(*Chris*)
On 6/12/07, john lee <[EMAIL PROTECTED]> wrote:
inside Struts(1.x) Action class, within method
public ActionForward(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServlet
inside Struts(1.x) Action class, within method
public ActionForward(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws Exception
i did the following:
...
Cookie me;
me=new Cookie("LoginID","xxx");
me.setMaxAge(30*2
inside Struts(1.x) Action class, within method
public ActionForward(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws Exception
i did the following:
...
Cookie me;
me=new Cookie("LoginID","xxx");
me.setMaxAge(30*24*60*6
13 matches
Mail list logo