日期:2014-05-17 浏览次数:20758 次
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
// TODO Auto-generated method stub
// place your code here
// pass the request along the filter chain
SystemDao systemDao = new SystemDaoImpl();
System system = systemDao.queryEntity();
if (request.getServletContext().getAttribute("System") == null) {
request.getServletContext().setAttribute("System", system);
logger.error(system);
}
chain.doFilter(request, response);
}