日期:2014-05-18 浏览次数:20945 次
String userId = (String)httpServletRequest.getSession().getAttribute("userId");
try{
if(userId != null){
filterChain.doFilter(request, response);
}
else{
httpServletResponse.sendRedirect("http://localhost:8080/Medinet/login.do");
}
}
catch(Exception ex)
{
ex.printStackTrace();
}