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:
   
  <action path="/login"
    type="mypackage.LoginAction"
    scope="session"
    <forward name="success" path="/display.jsp" redirect="yes" />
  </action>
   
  I even tried both redirect="yes" option and "without" option as well, but 
still not see the cooke generate.
   
  tks in advance
   
  john 
   
   

Chris Pratt <[EMAIL PROTECTED]> wrote:
  Where'd you get the response? Does your action implement
ServletResponseAware?
(*Chris*)

On 6/12/07, 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!


       
---------------------------------
Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out. 

Reply via email to