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(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*60);
> response.addCookie(me);
> ...
> return mapping.findFroward("success");
>
> but no cookie(LoginID) is generated at local harddisk, what could be happen?
> inside Struts action class, can not call Cookie function?
>
> any clue? tks in advance
>
> john
>
>
>
> -
> Need a vacation? Get great deals to amazing places on Yahoo! Travel.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]