質問編集履歴
1
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,23 +1,10 @@
|
|
1
1
|
Struts2を勉強中です。
|
2
|
-
|
3
2
|
struts-config.xmlに以下のようなコードがあるのですが、class="actions.events.{1}"の意味がよくわかりません。
|
4
|
-
|
5
3
|
この場合の{1}は何を意味し、何を行うのでしょうか?{}の目的を教えてください。
|
6
4
|
|
7
|
-
|
8
|
-
|
9
|
-
```lang-<ここに言語を入力>
|
10
|
-
|
11
5
|
<package name="sendRedirect" namespace="/sendRedirect" extends="struts-default">
|
12
|
-
|
13
6
|
<action name="*" class="actions.sendRedirect.{1}">
|
14
|
-
|
15
7
|
<result>/views/sendRedirect/{1}.jsp</result>
|
16
|
-
|
17
8
|
<result name="redirect" type="redirect">${redirectUrl}</result>
|
18
|
-
|
19
9
|
</action>
|
20
|
-
|
21
10
|
</package>
|
22
|
-
|
23
|
-
```
|