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 passed to the browser. I suspect it may have to do with setting the path or domain, but that's just a guess. (*Chris*)
On 6/12/07, john lee <[EMAIL PROTECTED]> wrote:
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 specifically are you checking to see if the cookie (physically) exists? d. --- john lee wrote: > > > 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. > > > --------------------------------- > Shape Yahoo! in your own image. Join our Network > Research Panel today! ____________________________________________________________________________________ Get the free Yahoo! toolbar and rest assured with the added security of spyware protection. http://new.toolbar.yahoo.com/toolbar/features/norton/index.php --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------- Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.