摘要
本文主要针对基于J2EE过滤器技术与拦截器结合实现用户的访问控制进行讨论。文中介绍了Servlet过滤器技术和Struts 2中的拦截器技术,以及这两种技术对访问控制的支持,最后提出对两者的有效结合,以求给系统安全实现的开发带来便利,减少代码冗余以及更好的维护性与可移植性。
This paper mainly discusses the user access control based on J2EE filter technology and interceptor. This paper introduces the Servlet Filter technology and Struts2 interceptor technology, and these two kinds of technologies for access control support, finally puts forward to the effective combination of Filter and interceptor,which can bring convenience to the development of system security implementation, reduce code redundancy and make better maintainability and portability.