Getting Syntax Error While i am try to retrieve data from database using JSTL and Derby Database in Netbeans please help me..
<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>
Thanks in Advance ....please ...
SELECT * FROM NITIN; Here semi-colon ';' is not required
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.