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

 

相關文章
相關標籤/搜索