获取语法错误当我尝试使用Netbeans中的JSTL和Derby数据库从数据库中检索数据时,请帮帮我..
<body>
<sql:setDataSource
var="myDS"
driver="org.apache.derby.jdbc.ClientDriver"
url="jdbc:derby://localhost:1527/nit"
user="root" password=" "
/>
<sql:query var="listUsers" dataSource="${myDS}">
SELECT * FROM NITIN;
</sql:query>
<div align="center">
<table border="1" cellpadding="5">
<caption><h2>List of users</h2></caption>
<tr>
<th>Name</th>
<th>Mobile</th>
</tr>
<c:forEach var="user" items="${listUsers.rows}">
<tr>
<td><c:out value="${user.name}" /></td>
<td><c:out value="${user.mobile}" /></td>
</tr>
</c:forEach>
</table>
</div>
先谢谢....请...
答案 0 :(得分:0)
SELECT * FROM NITIN;这里用冒号';'不是必需的