Re: Link Display Logic

2010-11-30 Thread Zoran Avtarovski
s executed. > > >Beez >r 5347 > >-Original Message- >From: Biesbrock, Kevin >Sent: Tuesday, November 30, 2010 11:06 AM >To: 'Zoran Avtarovski'; 'Struts Users Mailing List' >Subject: RE: Link Display Logic > >Thank you for the sugges

RE: Link Display Logic

2010-11-30 Thread Biesbrock, Kevin
Authorized" and I have to invoke it e.g., . If I change 'authorized' to 'isAuthorized', then my else block is executed. Beez r 5347 -Original Message- From: Biesbrock, Kevin Sent: Tuesday, November 30, 2010 11:06 AM To: 'Zoran Avtarovski'; 'Struts U

RE: Link Display Logic

2010-11-30 Thread Biesbrock, Kevin
i [mailto:zo...@sparecreative.com] Sent: Monday, November 29, 2010 6:45 PM To: Struts Users Mailing List; Biesbrock, Kevin Subject: Re: Link Display Logic What we have implemented is a set of public authorisation methods in our base action which we call via ognl passing the actionId as the paramet

Re: Link Display Logic

2010-11-29 Thread Zoran Avtarovski
What we have implemented is a set of public authorisation methods in our base action which we call via ognl passing the actionId as the parameter. For example to test if a user should be shown the print report we have a isUserAuthorised(Integer actionId) method which we use as follows: Your stuff i

RE: Link Display Logic

2010-11-29 Thread Biesbrock, Kevin
Am I understanding that correctly? Beez -Original Message- From: Dave Newton [mailto:davelnew...@gmail.com] Sent: Monday, November 29, 2010 2:06 PM To: Struts Users Mailing List Subject: Re: Link Display Logic I'll generally expose permission info through an action (or whatever model m

Re: Link Display Logic

2010-11-29 Thread Dave Newton
I'll generally expose permission info through an action (or whatever model makes it to the page) and use a custom tag to really clarify and narrow the purpose of that particular JSP/etc. logic. Other than that, though, not sure what else I'd really do, if I'm trying to stay within the S2 framework

Link Display Logic

2010-11-29 Thread Biesbrock, Kevin
Hello users. I'm Kevin, first time caller, long time listener (Mr. Obvious reference). I have two reports and need to display a link for each if the following conditions are met: 1. The user is authorized to view the reports (they are secured), and 2. The specific report currently exists