泛微e9jsp需要login代码段

User user = HrmUserVarify.getUser(request, response);
if (user == null) {
HttpSession var5 = request.getSession(false);
user = (User) var5.getAttribute(“weaver_user@bean”);
if (user == null) {
response.sendRedirect(“http://” + request.getServerName() + “:” + request.getServerPort());
throw new Exception(“没有登入ecology”);
}
}

你可能感兴趣的:(服务器,前端,servlet)