質問編集履歴

1

【struts.xml】の内容が間違っていたため、修正致しました。

2018/06/10 10:37

投稿

yabe0919
yabe0919

スコア15

test CHANGED
File without changes
test CHANGED
@@ -178,33 +178,33 @@
178
178
 
179
179
  ■【struts.xml】作成
180
180
 
181
- <%@ page language="java" contentType="text/html; charset=UTF-8"
182
-
183
- pageEncoding="UTF-8"%>
184
-
185
- <%@taglib prefix="s" uri="/struts-tags" %>
181
+ <?xml version="1.0" encoding="UTF-8"?>
182
+
186
-
183
+ <!DOCTYPE struts PUBLIC
184
+
187
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
185
+ "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
186
+
188
-
187
+ "http://struts.apache.org/dtds/struts-2.0.dtd">
188
+
189
- <html>
189
+ <struts>
190
-
190
+
191
- <head>
191
+ <constant name = "struts.devMode" value = "true" />
192
-
192
+
193
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
193
+ <package name = "hori" extends = "struts-default">
194
-
194
+
195
- <title>Insert title here</title>
195
+ <action name = "ho"
196
+
196
-
197
+ class = "ho.myuAction"
198
+
197
- </head>
199
+ method = "execute">
198
-
199
- <body>
200
+
200
-
201
- <s:property value="name"/> さんのIDは
201
+ <result name ="success">/page1.jsp</result>
202
-
203
- <s:property value="id"/> です。
202
+
204
-
205
- </body>
206
-
207
- </html>
203
+ </action>
204
+
205
+ </package>
206
+
207
+ </struts>
208
208
 
209
209
 
210
210
 
@@ -247,3 +247,5 @@
247
247
  誰かにプログラミングの質問をしたことが無いので、もし足りない情報などがあれば伝えて頂ければ幸いです。
248
248
 
249
249
  よろしくお願い致します。
250
+
251
+ 追記、【struts.xml】の内容が間違っていたため修正致しました。