This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes role attribute in tiles tags... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "role attribute in tiles tags..." Watch "role attribute in tiles tags..." New topic
Author

role attribute in tiles tags...

Tad Dicks
Ranch Hand

Joined: Nov 16, 2004
Posts: 264
Does anyone know how this works, where/how do you set the roles that are checked for in this tag? Or can anyone give me a link that explains how this works I've tried looking through the struts documentation, but I just end up finding what tags use the role attribute. But no real information on defining the role for a user/session.

-Tad
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
Security roles are determined by your application server / servlet container. If you are using Tomcat, here's an article I found which discusses how to do this. The Tiles tags work with your server's specified roles to determine if a tile will display based on the role of the user who is logged in and trying to access that tile.


Jason's Blog
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: role attribute in tiles tags...
 
Similar Threads
user creation in weblogic 8.1 and weblogic 10.3
How to use the role in struts 1.3 ?
Data binding 2 variables to a checkbox
The Order of the security-role Element in DTD
Consulting Concepts about Security