Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 15941 invoked from network); 1 Jan 2009 00:08:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jan 2009 00:08:32 -0000 Received: (qmail 75626 invoked by uid 500); 1 Jan 2009 00:08:22 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 75602 invoked by uid 500); 1 Jan 2009 00:08:22 -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 75591 invoked by uid 99); 1 Jan 2009 00:08:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Dec 2008 16:08:22 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [66.163.179.140] (HELO web35601.mail.mud.yahoo.com) (66.163.179.140) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 01 Jan 2009 00:08:13 +0000 Received: (qmail 88430 invoked by uid 60001); 1 Jan 2009 00:07:51 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=bGqitcE0uHkBgVsnR2cAGXNeqDjXNVzqvkU8pTICHq0rw91orERFrgxuKbVyawf9wAZeACBv0EW5v7TRReNPmCHoWsf9Qr+UD2+jb0NEGvSELMOZqY64wRNcEA20ddJcx/z3P1a79EupR1Es2SIREpnP+4i5lxGsfaxO6YLtfp0=; X-YMail-OSG: HYv.xmsVM1mJgJ6Eh5qORARkaIDd0wSaiKQhckO9usAEuX.kEMBisfyDe5AJFcLZApClQyc.t58.hjIy_QiwZn4Hpx_V9iEkMqYyhzyWf0BGzcz8bNbabRGiYlIKHLVtGQV.Fe2w49h7C731vuCydbHcwlOJa9xJCyRAWvnm_BHXCnO2GiK.RdcKf.lgfG142JEaGI28FihNS_RwzJu_dT8iCuurg0rapg8LqnOFToaZdBd9PWNbEhcbixCzZnWTIEkr Received: from [69.70.138.94] by web35601.mail.mud.yahoo.com via HTTP; Wed, 31 Dec 2008 16:07:51 PST X-Mailer: YahooMailRC/1155.45 YahooMailWebService/0.7.260.1 References: <21237786.post@talk.nabble.com> Date: Wed, 31 Dec 2008 16:07:51 -0800 (PST) From: =?iso-8859-1?Q?Fran=E7ois_Rouxel?= Subject: Re : s2: howto protect a method with annotation To: Struts Users Mailing List MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <439183.88393.qm@web35601.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Yes sure=0AYou can use an=A0interceptor =0A=0A=0A=A0=0Aas simple as that :-)=0A=A0=0Afr/=0A=A0Manager_______________________________________= _____ ____________________________________________ =0A=0A=0A=0A----- Messag= e d'origine ----=0ADe : xianwinwin =0A=C0 : user@stru= ts.apache.org=0AEnvoy=E9 le : Mercredi, 31 D=E9cembre 2008, 18h03mn 22s=0AO= bjet=A0: s2: howto protect a method with annotation=0A=0A=0AHi all,=0A=0AI = have a class with different methods. I have 2 type of users:=0AEmployee and= Manager=0A=0Amy XML looks like this:=0A=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =0A= =A0 =A0 fileLayout=0A.=0A.=0A= .=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 = =A0=A0=A0 =A0=A0=A0 =0A=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A=A0 =0A=0A=0AI realized that one of= the method should be performed only by Manager. Is=0Athere anyway, using a= nnotation, to prevent employee from pressing a certain=0Abutton (that leads= to execution of the method)=0A=0ATHANK YOU!=0A=0A=0A-- =0AView this messag= e in context: http://www.nabble.com/s2%3A-howto-protect-a-method-with-annot= ation-tp21237786p21237786.html=0ASent from the Struts - User mailing list a= rchive at Nabble.com.=0A=0A=0A---------------------------------------------= ------------------------=0ATo unsubscribe, e-mail: user-unsubscribe@struts.= apache.org=0AFor additional commands, e-mail: user-help@struts.apache.org= =0A=0A=0A --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org