摘要
服务器端应用程序(Servlet)过滤器功能强大,已作为一个关键组件嵌入到了所有敏捷的、面向对象的Java2企业级网络应用程序中。分析了Servlet过滤器的机制,介绍了实际编程中会使用到的过滤器的3个接口:初始化方法、过滤器处理方法和销毁方法。最后以网站流量统计应用为例,详细说明了过滤器在Web应用系统中的定义及配置过程。
The server-side applicadom (servlet) filter has powerful functions. Used as a key component, it has been embedded in all the agile, object-oriented Java2 enterprise-level web applications. This paper analyzes the Servlet filter mechanism, introduces three interfaces of the filter to be used in the actual programming such as init method, doFJJter method and destroy method. At last, this paper takes application of website flux statistics as an example to describe in detail the definition and configttration process of filter in Web application system.
出处
《计算机与网络》
2010年第24期42-44,共3页
Computer & Network