【发布时间】:2014-05-15 17:16:38
【问题描述】:
这个错误请帮忙:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
异常
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 14 in the jsp file: /select.jsp
localhost cannot be resolved
14: connection = DriverManager.getConnection(localhost, "root", "apurva");
;
【问题讨论】:
-
把 localhost 放在引号里 -> "localhost"