現在、SerVlet/JSPを使って、簡単なドーナツ店のCRUDシステムを作成しています。
Filter(何も記記述してない)を実装して、処理は通るのですが、
いざ、web.xmlを作成し、記述すると404エラーになります。
この原因はなぜなのでしょうか。
お手数をお掛けしますが、ご教授いただけると幸いです。
XML
1<?xml version="1.0" encoding="UTF-8"?> 2 3<web-app version="3.1" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4 5<display-name>test</display-name> 6 7 8<filter> 9 10<filter-name>testF1</filter-name> 11 12<filter-class>Test1Filter</filter-class> 13 14</filter> 15 16 17<filter-mapping> 18 19<filter-name>testF1</filter-name> 20 21<url-pattern>*</url-pattern> 22 23</filter-mapping> 24 25</web-app>
回答1件
あなたの回答
tips
プレビュー