I am sorry , i am digging a lot on this issue and i come to know that how much 
stupid question i asked.
here comes my real question, if i want to get how many roles a user has, then , 
whether userprinciple object has all the roles to which a user has been 
assigned?
 
If want to access the SPI spring beans in my managed bean, how to do that? 
Because i can use the SPI class to find how many roles a user has.
 
I am currently using _user/<user-name> folder to place the default pages for 
the user.
If i want to change the default pages based on the user role? then what 
configurations i need to make?
 
please help me out in this issues.
 
Regards,
Pradeep.
 
 



> From: [EMAIL PROTECTED]> To: [email protected]> Subject: RE: 
> Accessing jass subject in managed bean.> Date: Wed, 8 Oct 2008 08:29:45 
> +0530> > 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
_________________________________________________________________
Searching for weekend getaways? Try Live.com
http://www.live.com/?scope=video&form=MICOAL

Reply via email to