Once the user has logged into your application through the filter, the application may access the user'sn name through the session attribute, edu.yale.its.tp.cas.client.filter.user, or if you import edu.yale.its.tip.cas.client.filter.CASFitler into your JSP or servlet, simply CASFilter.CAS_FILTER_USER.So you can get the current login user's name be the following code:String loginUserName = session.getAttribute(CASFilter.CAS_FILTER_USER);or String loginUserName = (String) session.getAttribute("edu.yale.its.tp.casa.client.filter.user");
may access the user'sn name through the session attribute, edu.yale.its.tp.cas.client.filter.user, or if you import edu.yale.its.tip.cas.client.filter.CASFitler into your JSP or servlet, simply CASFilter.CAS_FILTER_USER.So you can get the current login user's name be the following code:String loginUserName = session.getAttribute(CASFilter.CAS_FILTER_USER);or String loginUserName = (String) session.getAttribute("edu.yale.its.tp.casa.client.filter.user");