But this has a limitation that, to modify privilege on any screen element we need to make a change in the JSP.
Moreover if we have to show the button but disabled, it will be little cumbersome to do, I understand the HTML tag in general should not be loaded with such a functionality, but look at the advantage we have of doing this, little coding effort and central point of control for all of it. If you think we can include this in html taglib, and certainly I shall be more than willing to share my code with struts. Cheers Puneet ----- Original Message ----- From: "David Graham" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 02, 2003 9:45 PM Subject: Re: Item Level Security > > > You could also use the role attribute of the logic:present tag: > http://jakarta.apache.org/struts/userGuide/struts-logic.html#present > > David > > > > >From: "Puneet Agarwal" <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >To: "Struts Users" <[EMAIL PROTECTED]> > >Subject: Item Level Security > >Date: Wed, 2 Apr 2003 21:20:57 +0530 > > > >In our application every button does not have to be enabled for every > user. > > > >on server side we have a list of functions that are available for a > >particular role and every user session has his role information. > > > >what we have done to do this is: > > > >we included another attribute (named function) in html taglib's "image" > >tag. > > > >and in the ImageTag.java we checked whether current user role is allowed > to > >perform this function, if yes this button is enabled otherwise not. > > > >Is there any better approach to do this ? > > > >Regards, > >Puneet Agarwal > > > >Tata Consultancy Services, > >C-56, Phase - II, NOIDA 201305 (India) > >Phone: +91-120-2461001, 2, 7, 8, 9, 12, 13 (Ext. 1031) > >FAX : +91-120-246 1521 > > > >Struts ... Action ... Struts in Action ... Action in Struts ... Action > >"with" Struts ... > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > _________________________________________________________________ > Add photos to your messages with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

