teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

web.xmlの追記

2020/07/07 02:12

投稿

Apeynd
Apeynd

スコア5

title CHANGED
File without changes
body CHANGED
@@ -84,7 +84,79 @@
84
84
  </action>
85
85
  </action-mappings>
86
86
  ```
87
+ ```xml
88
+ <?xml version="1.0" encoding="windows-31j"?>
87
89
 
90
+ <!DOCTYPE web-app
91
+ PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
92
+ "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
93
+
94
+ <web-app>
95
+ <display-name>Struts Blank Application</display-name>
96
+
97
+ <!-- Standard Action Servlet Configuration (with debugging) -->
98
+ <servlet>
99
+ <servlet-name>action</servlet-name>
100
+ <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
101
+ <init-param>
102
+ <param-name>config</param-name>
103
+ <param-value>/WEB-INF/struts-config.xml</param-value>
104
+ </init-param>
105
+ <init-param>
106
+ <param-name>debug</param-name>
107
+ <param-value>2</param-value>
108
+ </init-param>
109
+ <init-param>
110
+ <param-name>detail</param-name>
111
+ <param-value>2</param-value>
112
+ </init-param>
113
+ <load-on-startup>2</load-on-startup>
114
+ </servlet>
115
+
116
+
117
+ <!-- Standard Action Servlet Mapping -->
118
+ <servlet-mapping>
119
+ <servlet-name>action</servlet-name>
120
+ <url-pattern>*.do</url-pattern>
121
+ </servlet-mapping>
122
+
123
+
124
+ <!-- The Usual Welcome File List -->
125
+ <!-- �X�^�[�g��ʂ�ݒ� -->
126
+ <welcome-file-list>
127
+ <welcome-file>index.jsp</welcome-file>
128
+ </welcome-file-list>
129
+
130
+
131
+ <!-- Struts Tag Library Descriptors -->
132
+ <taglib>
133
+ <taglib-uri>/tags/struts-bean</taglib-uri>
134
+ <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
135
+ </taglib>
136
+
137
+ <taglib>
138
+ <taglib-uri>/tags/struts-html</taglib-uri>
139
+ <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
140
+ </taglib>
141
+
142
+ <taglib>
143
+ <taglib-uri>/tags/struts-logic</taglib-uri>
144
+ <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
145
+ </taglib>
146
+
147
+ <taglib>
148
+ <taglib-uri>/tags/struts-nested</taglib-uri>
149
+ <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
150
+ </taglib>
151
+
152
+ <taglib>
153
+ <taglib-uri>/tags/struts-tiles</taglib-uri>
154
+ <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
155
+ </taglib>
156
+
157
+ </web-app>
158
+ ```
159
+
88
160
  ### 試したこと
89
161
 
90
162
  <html:form action="/login">を