質問編集履歴
2
エラー内容が400から500になりましたが、解決できません
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
JSPでDBの内容を表示したいけどエラー
|
1
|
+
JSPでDBの内容を表示したいけどエラー500
|
test
CHANGED
@@ -14,11 +14,41 @@
|
|
14
14
|
|
15
15
|
```
|
16
16
|
|
17
|
-
HTTPステータス
|
17
|
+
HTTPステータス 500 - javax.servlet.ServletException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'QUANTITY' in 'field list'
|
18
18
|
|
19
|
-
type ステータスレポート
|
20
19
|
|
20
|
+
|
21
|
+
type 例外レポート
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
メッセージ javax.servlet.ServletException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'QUANTITY' in 'field list'
|
26
|
+
|
27
|
+
|
28
|
+
|
21
|
-
説明 The re
|
29
|
+
説明 The server encountered an internal error that prevented it from fulfilling this request.
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
例外
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
org.apache.jasper.JasperException: javax.servlet.ServletException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'QUANTITY' in 'field list'
|
38
|
+
|
39
|
+
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:556)
|
40
|
+
|
41
|
+
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:462)
|
42
|
+
|
43
|
+
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
|
44
|
+
|
45
|
+
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
|
46
|
+
|
47
|
+
javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
|
48
|
+
|
49
|
+
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
|
50
|
+
|
51
|
+
|
22
52
|
|
23
53
|
```
|
24
54
|
|
1
jspファイル配置場所はWebContentの中のlibフォルダの下です
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
DBはMySQLを使っていて、データベース名"fire3"、テーブル名"god3" カラムはNOと名前のみです。
|
6
6
|
|
7
|
-
エクリプスで動的プロジェクト→WebContent
|
7
|
+
エクリプスで動的プロジェクト→WebContentの中にjspファイルを作り、WEB-INFのlibにMySQLのjarファイルを置いています。
|
8
8
|
|
9
9
|
|
10
10
|
|