Wiadomosc od Hu, Yiguang z 2006-09-18 23:34 brzmiala:
I tried to access the user name from different context other than
/Jetspeed and failed.
Under /jetspeed, I can get the user name by
request.getUserPrincipal().getName();
How to access this information from another context ?
JSR-168 isolates HTTPServletRequest and PortletRequest. Only
PortletRequest holds this information (by a specification,
HTTPServletRequest returns null from getUserPrincipal() in portal
environments). On the other hand, PortletRequest are limitted to a
portal context.
--
pozdrawiam,
Jacek Wislicki
[EMAIL PROTECTED]
http://www.nauka-biznes.org.pl/jetspeed/portal/
tel.: +48 502 408 444
gg: 2540358
skype: jacek_wislicki
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]