+1 ... and if the docs don't have the answer, there is always the source code and DTDs.
> -----Original Message----- > From: David Graham [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 20, 2003 3:42 PM > To: [EMAIL PROTECTED] > Subject: Re: Fine Grained Access Control in Sturts > > > I don't have it memorized. I just bookmark the taglib docs and > can quickly > send a link to an explanation. A lot of questions could be avoided by > simply looking in the docs first :-). > > David > > > > >From: Mike Duffy <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >To: Struts Users Mailing List <[EMAIL PROTECTED]> > >Subject: Re: Fine Grained Access Control in Sturts > >Date: Thu, 20 Mar 2003 12:38:14 -0800 (PST) > > > >Thanks David. > > > >I always feel bad when I ask a question that is in the existing > >documentation. > > > >For others (unlike David) who do not have the documentation > >memorized, the "logic:present" tag will take a "role" attribute: > > > >Checks whether the currently authenticated user (if any) has been > >associated with any of the specified security roles. Use a > >comma-delimited list to check for multiple roles. Example: > ><logic:present role="role1,role2,role3"> code..... </logic:present> > > > >(RT EXPR) > > > >Thanks again. > > > >Mike > > > > > >--- David Graham <[EMAIL PROTECTED]> wrote: > > > > >http://jakarta.apache.org/struts/userGuide/struts-logic.html#present > > > > > > David > > > > > > > > > > > > >From: Mike Duffy <[EMAIL PROTECTED]> > > > >Reply-To: "Struts Users Mailing List" > > > <[EMAIL PROTECTED]> > > > >To: [EMAIL PROTECTED] > > > >Subject: Fine Grained Access Control in Sturts > > > >Date: Thu, 20 Mar 2003 12:23:07 -0800 (PST) > > > > > > > >Does anyone have any thoughts on fine grained access control in > > > >Struts? > > > > > > > >Struts enables access control based on actions (see ?Struts in > > > >Action?, Husted, et. al., pp 550-553), and most application > > > servers > > > >can protect resources based on realms/roles. > > > > > > > >But what about display options based on roles. For example, if > > > you > > > >only wanted an ?Admin? link to appear if the user was an > > > >administrator, what would be the best way to do this? > > > > > > > >You could make the ?role? an attribute of the user object and then > > > do > > > >a logic test for the appropriate role. Or it might be even better > > > to > > > >write a logic tag that takes the user role as an attribute. Any > > > >thoughts? > > > > > > > >Thanks for your consideration. > > > > > > > >BTW. The Husted book is a very good book. > > > > > > > >Mike > > > > > > > > > > > >__________________________________________________ > > > >Do you Yahoo!? > > > >Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your > > > desktop! > > > >http://platinum.yahoo.com > > > > > > > > > >--------------------------------------------------------------------- > > > >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] > > > > > > > > >__________________________________________________ > >Do you Yahoo!? > >Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! > >http://platinum.yahoo.com > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > _________________________________________________________________ > Protect your PC - get McAfee.com VirusScan Online > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > > --------------------------------------------------------------------- > 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]

