高分请教关于JSP、JSTL、数据库的问题 50

以下分别是源码和编译过程中的提示,请帮助解决,谢谢。<%@pagecontentType="text/html"%><%@pagepageEncoding="GB2312... 以下分别是源码和编译过程中的提示,请帮助解决,谢谢。
<%@page contentType="text/html"%>
<%@page pageEncoding="GB2312"%>
<%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<title>演示query标签</title>
</head>
<body>
<%
String db = request.getRealPath("/") +"ch14/database.mdb";
%>
<sql:setDataSource dataSource="jdbc:odbc:driver={Microsoft Access Driver (*.mdb)};DBQ=db,sun.jdbc.odbc.JdbcOdbcDriver" />
<sql:query sql="SELECT * FROM Author" var ="selectResult" />
<c:forEach var="row" items="${selectResult.rows}">
<c:out value="${'姓名:'}"/>
<c:out value="${row.Name}"/>
<c:out value="${'|地址:'}"/>
<c:out value="${row.Address}"/>
<br>
</c:forEach>
</body>
</html>

init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
Compiling 1 source file to D:\web\jsp_dtwzkfysl\build\generated\classes
D:\web\jsp_dtwzkfysl\build\generated\src\org\apache\jsp\ch14\usingJQuery_jsp.java:105: package org.apache.taglibs.standard.tag.rt.sql does not exist
org.apache.taglibs.standard.tag.rt.sql.SetDataSourceTag _jspx_th_sql_setDataSource_0 = (org.apache.taglibs.standard.tag.rt.sql.SetDataSourceTag) _jspx_tagPool_sql_setDataSource_dataSource_nobody.get(org.apache.taglibs.standard.tag.rt.sql.SetDataSourceTag.class);
中间部分类同,因字数问题省略。 ^
Note: D:\web\jsp_dtwzkfysl\build\generated\src\org\apache\jsp\ch14\usingJQuery_jsp.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
21 errors
D:\web\jsp_dtwzkfysl\nbproject\build-impl.xml:353: The following error occurred while executing this line:
D:\web\jsp_dtwzkfysl\nbproject\build-impl.xml:141: Compile failed; see the compiler error output for details.
生成失败(总时间:9 秒)
展开
 我来答
百度网友e312db1e4
2007-01-04 · TA获得超过161个赞
知道小有建树答主
回答量:389
采纳率:0%
帮助的人:380万
展开全部
<%
String db = request.getRealPath("/") +"ch14/database.mdb";
%>

<sql:setDataSource dataSource="jdbc:odbc:driver={Microsoft Access Driver (*.mdb)};DBQ=db,sun.jdbc.odbc.JdbcOdbcDriver" />
数据源可能连错了,再看看jdbc这个数据源。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式