CAS with JSF
Ingeneur
goda.abishek at gmail.com
Tue Sep 5 23:05:41 EDT 2006
Hi Paulo,
Can you try,
FacesContext facesContext = FacesContext.getCurrentInstance();
user = (HttpServletRequest)(facesContext.getExternalContext().getRequest()).getRemoteUser();
Am not sure if,
FacesContext facesContext = FacesContext.getCurrentInstance();
user = facesContext.getExternalContext().getRemoteUser();
does the same.
Abishek Goda
On 9/6/06, Paulo Cheque <paulocheque at gmail.com> wrote:
> Hi, I am using CAS with JSF (MyFaces) but I am having problems getting
> the username that has logged in.
>
> MyCode:
>
> FacesContext facesContext = FacesContext.getCurrentInstance();
> HttpSession session = (HttpSession)
> facesContext.getExternalContext().getSession(false);
> session.getAttribute("edu.yale.its.tp.cas.cient.filter.user");
>
> Last command always returns null.
>
> Anyone know what I am doing wrong or any link where I can get help?
>
> Thanks in advance
> Paulo
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
--
Regards,
Abishek Goda
http://www.geocities.com/abi_gt
More information about the cas
mailing list