Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 71089 invoked from network); 12 Jun 2007 14:57:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jun 2007 14:57:59 -0000 Received: (qmail 35758 invoked by uid 500); 12 Jun 2007 14:57:51 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 35726 invoked by uid 500); 12 Jun 2007 14:57:51 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 35715 invoked by uid 99); 12 Jun 2007 14:57:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2007 07:57:51 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [209.191.125.38] (HELO web38407.mail.mud.yahoo.com) (209.191.125.38) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 12 Jun 2007 07:57:47 -0700 Received: (qmail 29794 invoked by uid 60001); 12 Jun 2007 14:57:26 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=zsy46NOO5I69Y+m2Qu2IiDxpePHiWCrw1RKsjfpFzzAhERYS57s4FSP0m8T9pjRlHCOv+v00FFiJ4Wcnd6Zm7t1B1SZCr9WPOyZ39EnxYv7AbGv/kuEGDRqg3m7qB84Tv4D53hDVDAuOeutuSijZP13LAP5xMV57sQrTIxBtufg=; X-YMail-OSG: KDo9pAMVM1l5.pAGwjbKXsnbhJvdRMQll4w1XOMc46Kyh1SLdwcyBHpEEyFWUC_s6eOrRLbRvyUfpXfsJkpfRKQ9pUBKoyei561GatUpi_w6LoRlXqrZEF.3Sk62KQ-- Received: from [65.168.98.50] by web38407.mail.mud.yahoo.com via HTTP; Tue, 12 Jun 2007 07:57:26 PDT Date: Tue, 12 Jun 2007 07:57:26 -0700 (PDT) From: john lee Subject: why response.addCookie not working inside Struts action class To: user@struts.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1407596918-1181660246=:28522" Content-Transfer-Encoding: 8bit Message-ID: <202226.28522.qm@web38407.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-1407596918-1181660246=:28522 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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. --0-1407596918-1181660246=:28522--