<%@ page import="java.io.*,java.util.*,java.sql.*"%> <%@ page import="javax.servlet.http.*,javax.servlet.*" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%> <html> <head> <title>SELECT Operation</title> </head> <body> <sql:setDataSource var="cs4010" driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost/cs4010" user="cs4010" password="cs4010"/> <sql:query dataSource="${cs4010}" var="result"> SELECT * from student; </sql:query> <table border="1" width="100%"> <tr> <th>Student ID</th> <th>Name</th> <th>Year</th> <th>Test Grade</th> </tr> <c:forEach var="row" items="${result.rows}"> <tr> <td><c:out value="${row.student_id}"/></td> <td><c:out value="${row.name}"/></td> <td><c:out value="${row.year}"/></td> <td><c:out value="${row.test}"/></td> </tr> </c:forEach> </table> </body> </html> ____________________________________________________________________________________ select.jsp