質問編集履歴
1
Actionクラスを追加しました。すみません。
test
CHANGED
File without changes
|
test
CHANGED
@@ -32,6 +32,52 @@
|
|
32
32
|
|
33
33
|
|
34
34
|
|
35
|
+
```HelloActionjava
|
36
|
+
|
37
|
+
public class HelloAction {
|
38
|
+
|
39
|
+
/** ロガー */
|
40
|
+
|
41
|
+
private Logger logger = LogManager.getLogger(HelloAction.class);
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
/** 名前 */
|
46
|
+
|
47
|
+
private String name;
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
public String execute() {
|
52
|
+
|
53
|
+
logger.info("入力されたパラメータは「{}」です。", name);
|
54
|
+
|
55
|
+
return "success";
|
56
|
+
|
57
|
+
}
|
58
|
+
|
59
|
+
public String getName() {
|
60
|
+
|
61
|
+
return name;
|
62
|
+
|
63
|
+
}
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
public void setName(String name) {
|
68
|
+
|
69
|
+
this.name = name;
|
70
|
+
|
71
|
+
}
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
}
|
76
|
+
|
77
|
+
```
|
78
|
+
|
79
|
+
|
80
|
+
|
35
81
|
```indexjsp
|
36
82
|
|
37
83
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|