That information is in the request object, not session - see 
http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/environment/Reque
st.html.  There is not (to my knowledge at least) a way to get an 
enumeration of all the roles associated with a user - you can only get 
a boolean back from isUserInRole(java.lang.String role).

See the chart at the bottom of 
http://xml.apache.org/cocoon/userdocs/xsp/request.html for the xsp-
request logicsheet tags related to the api.

Geoff

> Hi there.
> 
> I've configured Tomcat to handle authentication and authorisation on 
my Cocoon pages and everything
> works fine, including accessing user database etc. 
> Now, I would like to read user name and role from XSP. But I don't 
know how to do this. I tried to enumerate
> attributes in xsp-session but it's empty. Is it possible to access 
session login and role outside the Tomcat,
> I mean, in my cocoon app ?
> 
> I'm sorry for not directly Cocoon oriented question and thanks in 
advance for help.
> 
> Sebastian Gil
> 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> 
> 

-- 


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

Reply via email to