Servlet FilterConfig

FilterConfig的对象由Web容器建立。这个对象可用于获取web.xml文件中Filter的配置信息html

文件:index.htmljava

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>FilterConfig配置应用示例</title>
</head>
<body>
    <div style="text-align: center;">
        <a href="servlet1">查看Filter配置信息</a>
    </div>
</body>
</html>

 文件:MyFilter.javaweb

文件:MyServlet.javaspa

文件:web.xmlcode

 

相关文章
相关标签/搜索