I'd like to know how to get a full list of roles from Principal as well. I just don't see a way to do it. There's no method for it that I see.
Just a though: If you're authenticating against a JDBC realm (I'm thinking Tomcat here, so forgive me if you're not using Tomcat), you could always getUserPrincipal().getName() and look at up in your role table (assuming you have the necessary priviledges). That's the only thing that comes to mind - sorry :-( Vinh Tran wrote: >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. > -- Eddie Bush -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

