I tried to use the following way to get the user name and password, but it is 
not working...
i bought this idea from login portlet.
 
 
FacesContext context = FacesContext.getCurrentInstance();        
ExternalContext extcontext = context.getExternalContext();        RenderRequest 
request = (RenderRequest) extcontext.getRequest();                     
this.username = (String) ((RequestContext) 
request.getAttribute(RequestContext.REQUEST_PORTALENV)).getSessionAttribute(LoginConstants.USERNAME);
        this.password = (String) ((RequestContext) 
request.getAttribute(RequestContext.REQUEST_PORTALENV)).getSessionAttribute(LoginConstants.PASSWORD);System.out.println(username);



> From: [EMAIL PROTECTED]> To: [email protected]> Subject: 
> Accessing jass subject in managed bean.> Date: Wed, 8 Oct 2008 07:47:00 
> +0530> > Hi,> > I want to access the JAAS subject, i mean username and 
> password credentials in my backing bean.> Currently i am not using the SSO, i 
> am just testing out a temporary solution which mimic SSO.> Can any body tell 
> me how to access the JASS subject?> > Regards,> Pradeep.> 
> _________________________________________________________________> Movies, 
> sports & news! Get your daily entertainment fix, only on live.com> 
> http://www.live.com/?scope=video&form=MICOAL
_________________________________________________________________
Search for videos of Bollywood, Hollywood, Mollywood and every other wood, only 
on Live.com 
http://www.live.com/?scope=video&form=MICOAL

Reply via email to