I suppose you are right this is related to Tomcat.  My apologies, I will
repost there as well.  For the record, I still don't see how you can get
Roles from Principal but I will keep looking.  Thanks anyway.

-----Original Message-----
From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 9:40 AM
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: Retrieving list of Roles defined in web.xml [Revised]


You can also getPrincipal from the request, from that, you can ask for
the roles

You might want to pass this to tomcat users list... this is struts.

| -----Original Message-----
| From: Vinh Tran [mailto:[EMAIL PROTECTED]]
| Sent: Friday, September 27, 2002 7:55 AM
| To: [EMAIL PROTECTED]
| Subject: Retrieving list of Roles defined in web.xml [Revised]
|
| I can also manage if there is a simple way to identify the roles a
user
| particpates in (using container managed security). There is a call for
| isUserInRole() but nothing for getUserRoles()?
|
| Any ideas?
|
| Thanks.
|
| -----Original Message-----
| From: Vinh Tran [mailto:[EMAIL PROTECTED]]
| Sent: Thursday, September 26, 2002 9:37 PM
| To: [EMAIL PROTECTED]
| Subject: Retrieving list of Roles defined in web.xml
|
|
| I would like to get a list of Roles listed in web.xml.  Is there a
simple
| way to retrieve info from this file or do I need to use a Digester?
|
|  <security-constraint>
|   <web-resource-collection>
|    <role-name>Admin</role-name>
|    <role-name>Tomcat</role-name>
|    <role-name>Role1</role-name
|   </auth-constraint>
|  </security-constraint>
|
| Thanks
|
|
| --
| To unsubscribe, e-mail:   <mailto:struts-user-
| [EMAIL PROTECTED]>
| For additional commands, e-mail: <mailto:struts-user-
| [EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to