The logic:present looks like a good solution, but I would be interested in seeing how you've defined a controllerClass to do the trick, too.
Dave -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 2:29 PM To: [EMAIL PROTECTED] Subject: RE: Tiles:insert role(s)? You can also define a controllerClass for your tiles definition and insert the tiles properties according to the user roles. If you need I can send you an example (tomorrow). Pedro Salgado > Hi Dave, > You can use the logic present to show what you want for a particular > role. You can use it like this : > > <logic:present role="admin,associates"> > <tiles:insert page="left_nav/admin.jsp"/> > </logic:present> > > With the logic:present you can write user as much that you want it. > > Charles > > -----Original Message----- > From: Dave Bender [mailto:[EMAIL PROTECTED] > Sent: November 16, 2004 2:07 PM > To: Struts Users Mailing List > Subject: Tiles:insert role(s)? > > > Is it possible to make a tile show up for people from multiple roles? > I'm building a dynamic menu and would like certain items to show up for > people in different roles. For example: > > <tiles:insert page="left_nav/admin.jsp" role="admin" /> > > works great to make the admin link show up if the user in the 'admin' > role. But I want some items to show up for a set of roles, so it'll > appear if a user is in 'admin', 'associates', but not others. I've > tried stringing together roles with commas, but that didn't work. Is > there already a way to do this or do I need to write my own code? > > Thanks! > > Dave > > > --------------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]