Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 36A8599A2 for ; Wed, 15 May 2013 21:03:43 +0000 (UTC) Received: (qmail 88950 invoked by uid 500); 15 May 2013 21:03:41 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 88893 invoked by uid 500); 15 May 2013 21:03:41 -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 88880 invoked by uid 99); 15 May 2013 21:03:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 May 2013 21:03:41 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.139.212.160] (HELO nm1.bullet.mail.bf1.yahoo.com) (98.139.212.160) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 15 May 2013 21:03:33 +0000 Received: from [98.139.215.143] by nm1.bullet.mail.bf1.yahoo.com with NNFMP; 15 May 2013 21:03:12 -0000 Received: from [98.139.212.243] by tm14.bullet.mail.bf1.yahoo.com with NNFMP; 15 May 2013 21:03:12 -0000 Received: from [127.0.0.1] by omp1052.mail.bf1.yahoo.com with NNFMP; 15 May 2013 21:03:12 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 393657.6334.bm@omp1052.mail.bf1.yahoo.com Received: (qmail 65496 invoked by uid 60001); 15 May 2013 20:56:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1368651391; bh=ZbydzrdhHEYd50YJtUAiRk56jA0pTeAbUXx1Bvv4GdA=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=hHYzIQQUZ8lKHg/Xw/IS4ACmKWMOxBKUvSyzNbugtrZAh8anFYLOq+pMFq4dSkrUeGYSHJ9aRBwPU64b9VzHAGUUloCi50rqHmaVmamR+y+cLSZ1C4F8BKGbUpRZiMevwzq+5kXyQnqYa7IxE76p25qk2AkSBOXQFzlXAs+w2KU= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=URFVOcI51bOMFgHL4TB8NPjyf9AtpRvvwp7v0vYfnMcKOqQebwwlSF67FjlsrR+vmuX+dVKLC83uCydJ1/fy4xiQXsJTJSXbcSEERn6tVsLnI9v5RaOK85B6XRSjH+xCFQ+UN/YCS9TOU9rgHqQ2zeUirtstGZEE9mq+pxTPUXU=; X-YMail-OSG: Rnr.8xMVM1np.ac9RjR0IK0NvoMuoEQu6EoKHfoKyyMDDP4 7so_RhFDU12iEYMGJ2bBIPlJEvrKPto1Ys117YnRdOQTdxkNCdSk4AKfiXJq Q5UT0cECqM7iI6cJftxhpPaTfPKv6m1pnY0BgEMFuK0gXrfzHPxcceLIZYQI CEUj7BZlxioz1r0AC1KzvckvcOQgzIv5gfVxVMLOVAkKqVuvT4ShAe3jXoxQ JV_dD5UKwFKXTZJbbM88ZV4iCPXTSar5FyHsVubJEgCsqdiBDwdJ_nT7Jn3n EMhXDa2DR7GUiCeSCsPu0w1.loMwmZN.nMvdpABKwAa_bh.hrOhnNt8SiBat 24aZzGb7.nvJIphsIDQGS.4mJBcHnHUjD9tL7pfuJYT87EamQOErPLH2P28o L_esCmExrfWgtbHsevxSDMcAiwULXYosoWmywCTETJMBbp3HXfQdPXlseFM_ VS56g4uH8Zqn3yvaFPR70DHVI6CL3fYMzxmaCsgi67HJ85qMzO45vz1SSaTA QpTebY6ZuZN1j Received: from [50.76.64.177] by web140701.mail.bf1.yahoo.com via HTTP; Wed, 15 May 2013 13:56:31 PDT X-Rocket-MIMEInfo: 002.001,CgpJIGhhdmUgbm8gZGlmZmljdWx0eSB0byBoYW5kbGUgY29va2llIGluIHN0cnV0cyAxLCBidXQgaGF2ZSBsb3RzIG9mIGVycm9yIGluIHN0cnV0cyAyCgppIGhhdmUgdGhlIGZvbGxvd2luZyBwcm9ncmFtCgoKcHVibGljIGNsYXNzIFNlY3VyaXR5VmVyaWZ5U2Vzc2lvbkludGVyY2VwdGVyIGV4dGVuZHMgQWJzdHJhY3RJbnRlcmNlcHRvciBpbXBsZW1lbnRzIFNlcnZsZXRSZXNwb25zZUF3YXJlLCBTZXJ2bGV0UmVxdWVzdEF3YXJlIHsKLi4uLgoKTWFwIHNlc3Npb249IEFjdGlvbkNvbnRleHQuZ2V0Q29udGUBMAEBAQE- X-Mailer: YahooMailWebService/0.8.141.536 Message-ID: <1368651391.50748.YahooMailNeo@web140701.mail.bf1.yahoo.com> Date: Wed, 15 May 2013 13:56:31 -0700 (PDT) From: john lee Reply-To: john lee Subject: Cookie in struts2 To: struts support MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="1936327721-693324548-1368651391=:50748" X-Virus-Checked: Checked by ClamAV on apache.org --1936327721-693324548-1368651391=:50748 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable =0A=0AI have no difficulty to handle cookie in struts 1, but have lots of e= rror in struts 2=0A=0Ai have the following program=0A=0A=0Apublic class Sec= urityVerifySessionIntercepter extends AbstractInterceptor implements Servle= tResponseAware, ServletRequestAware {=0A....=0A=0AMap session=3D ActionCont= ext.getContext().getSession();=0A=0A=0ACookie cookieList[]=3DHttpServletReq= uest.getCookies();=0A=0Afor above program, the compiler give so much error = about cookie.=0A=0A=0Acannot find symbol=0Asymbol=A0 : class Cookie=0Alocat= ion: class SecurityVerifySessionIntercepter=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0 C= ookie cookieList[]=3DHttpServletRequest.getCookies();=0A=0A=0Anon-static me= thod getCookies() cannot be referenced from a static context=0A=A0=A0=A0=A0= =A0=A0=A0=A0=A0 Cookie cookieList[]=3DHttpServletRequest.getCookies();=0A= =0A=0A=0Aplease advise=0A=0Athanks in advance=0A=0Ajohn --1936327721-693324548-1368651391=:50748--