質問編集履歴
1
設定ファイル追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,3 +5,73 @@
|
|
5
5
|
|
6
6
|
|
7
7
|
struts2-convention-pluginをWEB-INF>libいれた状態で、画面表示されるようにしたいのですが、何が問題となっているかお分かりのかたおられますでしょうか?
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
web.xml
|
12
|
+
|
13
|
+
<filter>
|
14
|
+
|
15
|
+
<filter-name>struts2</filter-name>
|
16
|
+
|
17
|
+
<filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class>
|
18
|
+
|
19
|
+
</filter>
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
<filter-mapping>
|
24
|
+
|
25
|
+
<filter-name>struts2</filter-name>
|
26
|
+
|
27
|
+
<url-pattern>/*</url-pattern>
|
28
|
+
|
29
|
+
</filter-mapping>
|
30
|
+
|
31
|
+
</web-app>
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
struts.xml
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
42
|
+
|
43
|
+
<!DOCTYPE struts PUBLIC
|
44
|
+
|
45
|
+
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
|
46
|
+
|
47
|
+
"http://struts.apache.org/dtds/struts-2.0.dtd">
|
48
|
+
|
49
|
+
<struts>
|
50
|
+
|
51
|
+
<!-- アクションのパッケージ定義 -->
|
52
|
+
|
53
|
+
<package name="default" extends="struts-default">
|
54
|
+
|
55
|
+
<!-- Hello worldのサンプルアクション -->
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
<action name="top" class="sample.IndexAction" method="execute">
|
60
|
+
|
61
|
+
<result name="success">/view/sample/index.jsp</result>
|
62
|
+
|
63
|
+
</action>
|
64
|
+
|
65
|
+
<action name="hello" class="sample.TestAction"
|
66
|
+
|
67
|
+
method="execute">
|
68
|
+
|
69
|
+
<result name="success">/view/sample/index.jsp</result>
|
70
|
+
|
71
|
+
</action>
|
72
|
+
|
73
|
+
</package>
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
</struts>
|