源代码:<%@ page language="java" contentType="text/html;charset=gb2312"%>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %><html>
<head>
<title>SetDateSource标签使用</title>
</head>
<body>
<%--指定数据库连接URL.JDBC驱动,数据库用户名和密码--%>
<sql:setDataSource url="jdbc:mysql://localhost/javaweb"
driver="com.mysql.jdbc.Driver"
user="root"
password="xiong"/>
</body>
</html>错误提示:exception org.apache.jasper.JasperException: An exception occurred processing JSP page /ch09/SetDataSourceDemo.jsp at line 107: </head>
8: <body>
9: <%--指定数据库连接URL.JDBC驱动,数据库用户名和密码--%>
10: <sql:setDataSource url="jdbc:mysql://localhost/javaweb"
11: driver="com.mysql.jdbc.Driver"
12: user="root"
13: password="xiong"/>
我想知道 这第10行代码 那里出错了, - -! 求各位大虾 指教 指教.......
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %><html>
<head>
<title>SetDateSource标签使用</title>
</head>
<body>
<%--指定数据库连接URL.JDBC驱动,数据库用户名和密码--%>
<sql:setDataSource url="jdbc:mysql://localhost/javaweb"
driver="com.mysql.jdbc.Driver"
user="root"
password="xiong"/>
</body>
</html>错误提示:exception org.apache.jasper.JasperException: An exception occurred processing JSP page /ch09/SetDataSourceDemo.jsp at line 107: </head>
8: <body>
9: <%--指定数据库连接URL.JDBC驱动,数据库用户名和密码--%>
10: <sql:setDataSource url="jdbc:mysql://localhost/javaweb"
11: driver="com.mysql.jdbc.Driver"
12: user="root"
13: password="xiong"/>
我想知道 这第10行代码 那里出错了, - -! 求各位大虾 指教 指教.......
下面图片是myEclipse连接MySQL参数,
但是为什么上面这个JSP文件却无法连接到MySQL