一
AttributePrincipal principal = (AttributePrincipal) request.getUserPrincipal();
String userSessionId = principal.getName();//sessionId 用于获取用户信息
二
if(
request.getQueryString().indexOf("logout=true") == -1){
System.out.println("==================="+userSessionId+"===================");
RequestDispatcher requestDispatcher1 = request.getRequestDispatcher("/logout_sso.jsp");
requestDispatcher1.forward(request, response);
return;
}
request.getQueryString() 是获得传进来的url所携带的参数
比如:
http://localhost/test.do?a=b&c=d&e=f
得到的是
a=b&c=d&e=f
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。