Filter

1.create a Filter handler class

2.config this Filter in web.xml

 

Filter is just an enhanced Servlet, it can do pre-handle to request, and do suf-handle to response.

常见应用:权限控制、记录日志

posted @ 2012-06-20 15:55  肖建春  阅读(95)  评论(0编辑  收藏  举报