Struts2 を発見したばかりで、web.xml
ファイルに問題があります。
フィルタータグの近くでエラーが発生します:
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
この行に複数の注釈が見つかりました: - 要素の開始タグ<filter>
- ルート要素に続くドキュメント内のマークアップは整形式でなければなりません。
何が問題ですか?どうすれば解決できますか?
ありがとうございました!
ご関心をお寄せいただきありがとうございます。
これが私のweb.xml
ファイルです:
`<?xml version="1.0" encoding="UTF-8"?>
<web-app>
<display-name>struts2example</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>`