お世話になります。
web.xmlでjsp-configを設定し、共通画面を作成したいんですがうまくいきません。
間違っている部分があればご指摘、ご指導いただけると幸いです。
xml
1プロジェクトのルート 2MemberShip 3|-javaリソース 4 |-src 5 |-WEB-INF 6 |-web.xml 7 |-db(servletのフォルダ) 8 |-filter(servletのフォルダ) 9|-WebContent 10 |-common 11 |-footer.jsp 12 |-header.jsp
java
1<?xml version="1.0" encoding="UTF-8"?> 2<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 3xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 4http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1"> 5 6 7 <display-name>MemberShip</display-name> 8 <welcome-file-list> 9 <welcome-file>index.html</welcome-file> 10 <welcome-file>index.htm</welcome-file> 11 <welcome-file>index.jsp</welcome-file> 12 <welcome-file>default.html</welcome-file> 13 <welcome-file>default.htm</welcome-file> 14 <welcome-file>default.jsp</welcome-file> 15 </welcome-file-list> 16 17 <resource-ref> 18 <res-ref-name>jdbc/MemberShip</res-ref-name> 19 <res-type>javax.sql.DataSource</res-type> 20 <res-auth>Container</res-auth> 21 </resource-ref> 22 23 <jsp-config> 24 <jsp-property-group> 25 <url-pattern>*.jsp</url-pattern> 26 <page-encoding>UTF-8</page-encoding> 27 <include-prelude>/common/header.jsp</include-prelude> 28 <include-coda>/common/footer.jsp</include-coda> 29 </jsp-property-group> 30 </jsp-config> 31</web-app>
回答1件
あなたの回答
tips
プレビュー