Can you just use HttpServletRequest#getUserPrincipal for this?
http://download.oracle.com/javaee/6/api/javax/servlet/http/HttpServletRequest.html#getUserPrincipal()
Cheers,
Bobby
On 9/19/11 12:48 PM, forums_at_java.net wrote:
> I'm using Glassfish 3.1 with container-managed security of file realm.
>
> I've manage to make all the changes to both web.xml and sun-web.xml so
> that
> glassfish request username and password when open the web application
> in a
> browser and only letting you in after correct input has been enter.
>
> Now I would like to be able to get the principle (whole instance, not
> just
> the name) of the user that was authenticated and I can't figure this
> one out?
>
>
>
> Thank you,
>
> Ido.
>
>
> --
>
> [Message sent by forum member 'ido_ran']
>
> View Post: http://forums.java.net/node/844784
>
>