67,513
社区成员
发帖
与我相关
我的任务
分享
<filter>
<filter-name>CAS Assertion Thread Local Filter</filter-name>
<filter-class>org.jasig.cas.client.util.AssertionThreadLocalFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>CAS Assertion Thread Local Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
获取方法struts2 你也可以写到filter里来获取
HttpSession sessions = ServletActionContext.getRequest().getSession();
Object object = sessions.getAttribute("_const_cas_assertion_");
if(object != null){
AttributePrincipal principal = (AttributePrincipal)ServletActionContext.getRequest().getUserPrincipal();
String username = principal.getName();
}
可能帮不上太多忙、
ps:csdn为什么不能插入xml的代码了呢,以前是能的喔、