質問編集履歴
6
タイトル修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
データベースのデータをarrayListを用いてjspに表示したい。
|
test
CHANGED
File without changes
|
5
エラーの詳細について追記
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
データベースのデータをarrayListを用いてjspに表示したい。
|
1
|
+
らーのしょうデータベースのデータをarrayListを用いてjspに表示したい。
|
test
CHANGED
@@ -10,7 +10,23 @@
|
|
10
10
|
|
11
11
|
```
|
12
12
|
|
13
|
+
type 例外レポート
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
メッセージ An exception occurred processing JSP page /html/list/list.jsp at line 61
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
説明 The server encountered an internal error that prevented it from fulfilling this request.
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
例外
|
26
|
+
|
27
|
+
|
28
|
+
|
13
|
-
|
29
|
+
org.apache.jasper.JasperException: An exception occurred processing JSP page /html/list/list.jsp at line 61
|
14
30
|
|
15
31
|
|
16
32
|
|
@@ -32,7 +48,73 @@
|
|
32
48
|
|
33
49
|
|
34
50
|
|
51
|
+
Stacktrace:
|
52
|
+
|
53
|
+
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:574)
|
54
|
+
|
55
|
+
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:476)
|
56
|
+
|
57
|
+
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
|
58
|
+
|
59
|
+
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
|
60
|
+
|
61
|
+
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
|
62
|
+
|
63
|
+
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
|
64
|
+
|
65
|
+
jp.co.sss.crud.servlet.SelectAll.doGet(SelectAll.java:23)
|
66
|
+
|
67
|
+
javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
|
68
|
+
|
69
|
+
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
|
70
|
+
|
71
|
+
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
|
72
|
+
|
73
|
+
原因
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
javax.el.PropertyNotFoundException: Property 'empId' not found on type java.lang.String
|
78
|
+
|
79
|
+
javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:268)
|
80
|
+
|
81
|
+
javax.el.BeanELResolver$BeanProperties.access$300(BeanELResolver.java:221)
|
82
|
+
|
83
|
+
javax.el.BeanELResolver.property(BeanELResolver.java:355)
|
84
|
+
|
85
|
+
javax.el.BeanELResolver.getValue(BeanELResolver.java:95)
|
86
|
+
|
87
|
+
org.apache.jasper.el.JasperELResolver.getValue(JasperELResolver.java:110)
|
88
|
+
|
35
|
-
|
89
|
+
org.apache.el.parser.AstValue.getValue(AstValue.java:169)
|
90
|
+
|
91
|
+
org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:184)
|
92
|
+
|
93
|
+
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:943)
|
94
|
+
|
95
|
+
org.apache.jsp.html.list.list_jsp._jspService(list_jsp.java:197)
|
96
|
+
|
97
|
+
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
|
98
|
+
|
99
|
+
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
|
100
|
+
|
101
|
+
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
|
102
|
+
|
103
|
+
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
|
104
|
+
|
105
|
+
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
|
106
|
+
|
107
|
+
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
|
108
|
+
|
109
|
+
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
|
110
|
+
|
111
|
+
jp.co.sss.crud.servlet.SelectAll.doGet(SelectAll.java:23)
|
112
|
+
|
113
|
+
javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
|
114
|
+
|
115
|
+
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
|
116
|
+
|
117
|
+
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
|
36
118
|
|
37
119
|
```
|
38
120
|
|
4
Empクラスのソースの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,6 +28,12 @@
|
|
28
28
|
|
29
29
|
64: <td>${emp.address}</td>
|
30
30
|
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
Stacktrace:] with root cause [金 11 22 11:29:48 JST 2019]
|
36
|
+
|
31
37
|
```
|
32
38
|
|
33
39
|
```Emp
|
3
empの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,6 +30,138 @@
|
|
30
30
|
|
31
31
|
```
|
32
32
|
|
33
|
+
```Emp
|
34
|
+
|
35
|
+
package jp.co.sss.crud.bean;
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
import java.util.Date;
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
public class Emp {
|
44
|
+
|
45
|
+
private int empId;
|
46
|
+
|
47
|
+
private String empPass;
|
48
|
+
|
49
|
+
private String empName;
|
50
|
+
|
51
|
+
private int gender;
|
52
|
+
|
53
|
+
private String address;
|
54
|
+
|
55
|
+
private Date birthday;
|
56
|
+
|
57
|
+
private int authority;
|
58
|
+
|
59
|
+
private Dept dept;
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
public int getEmpId() {
|
64
|
+
|
65
|
+
return empId;
|
66
|
+
|
67
|
+
}
|
68
|
+
|
69
|
+
public void setEmpId(int empId) {
|
70
|
+
|
71
|
+
this.empId = empId;
|
72
|
+
|
73
|
+
}
|
74
|
+
|
75
|
+
public String getEmpPass() {
|
76
|
+
|
77
|
+
return empPass;
|
78
|
+
|
79
|
+
}
|
80
|
+
|
81
|
+
public void setEmpPass(String empPass) {
|
82
|
+
|
83
|
+
this.empPass = empPass;
|
84
|
+
|
85
|
+
}
|
86
|
+
|
87
|
+
public String getEmpName() {
|
88
|
+
|
89
|
+
return empName;
|
90
|
+
|
91
|
+
}
|
92
|
+
|
93
|
+
public void setEmpName(String empName) {
|
94
|
+
|
95
|
+
this.empName = empName;
|
96
|
+
|
97
|
+
}
|
98
|
+
|
99
|
+
public int getGender() {
|
100
|
+
|
101
|
+
return gender;
|
102
|
+
|
103
|
+
}
|
104
|
+
|
105
|
+
public void setGender(int gender) {
|
106
|
+
|
107
|
+
this.gender = gender;
|
108
|
+
|
109
|
+
}
|
110
|
+
|
111
|
+
public String getAddress() {
|
112
|
+
|
113
|
+
return address;
|
114
|
+
|
115
|
+
}
|
116
|
+
|
117
|
+
public void setAddress(String address) {
|
118
|
+
|
119
|
+
this.address = address;
|
120
|
+
|
121
|
+
}
|
122
|
+
|
123
|
+
public Date getBirthday() {
|
124
|
+
|
125
|
+
return birthday;
|
126
|
+
|
127
|
+
}
|
128
|
+
|
129
|
+
public void setBirthday(Date birthday) {
|
130
|
+
|
131
|
+
this.birthday = birthday;
|
132
|
+
|
133
|
+
}
|
134
|
+
|
135
|
+
public int getAuthority() {
|
136
|
+
|
137
|
+
return authority;
|
138
|
+
|
139
|
+
}
|
140
|
+
|
141
|
+
public void setAuthority(int authority) {
|
142
|
+
|
143
|
+
this.authority = authority;
|
144
|
+
|
145
|
+
}
|
146
|
+
|
147
|
+
public Dept getDept() {
|
148
|
+
|
149
|
+
return dept;
|
150
|
+
|
151
|
+
}
|
152
|
+
|
153
|
+
public void setDept(Dept dept) {
|
154
|
+
|
155
|
+
this.dept = dept;
|
156
|
+
|
157
|
+
}
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
}
|
162
|
+
|
163
|
+
```
|
164
|
+
|
33
165
|
|
34
166
|
|
35
167
|
```jsp
|
2
エラーの表示
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,7 +4,11 @@
|
|
4
4
|
|
5
5
|
これを実装すると${emp.empId}が読込めていない旨のエラーが表示されます。
|
6
6
|
|
7
|
+
|
8
|
+
|
9
|
+
- エラー
|
10
|
+
|
7
|
-
```
|
11
|
+
```
|
8
12
|
|
9
13
|
重大: Servlet.service() for servlet [jsp] in context with path [/servlet_crud] threw exception [An exception occurred processing JSP page /html/list/list.jsp at line 61
|
10
14
|
|
1
エラー内容の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,7 +2,29 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
これを実装すると${emp.empId}
|
5
|
+
これを実装すると${emp.empId}が読込めていない旨のエラーが表示されます。
|
6
|
+
|
7
|
+
```コンソール
|
8
|
+
|
9
|
+
重大: Servlet.service() for servlet [jsp] in context with path [/servlet_crud] threw exception [An exception occurred processing JSP page /html/list/list.jsp at line 61
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
58: </tr>
|
14
|
+
|
15
|
+
59: <c:forEach var="emp" items="${empList} ">
|
16
|
+
|
17
|
+
60: <tr>
|
18
|
+
|
19
|
+
61: <td>${emp.empId}</td>
|
20
|
+
|
21
|
+
62: <td>${emp.empName}</td>
|
22
|
+
|
23
|
+
63: <td>${emp.gender}</td>
|
24
|
+
|
25
|
+
64: <td>${emp.address}</td>
|
26
|
+
|
27
|
+
```
|
6
28
|
|
7
29
|
|
8
30
|
|