<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
<sql:setDataSource dataSource="jdbc/sadb" />
<sql:query var="rset">
SELECT * FROM SHITEN WHERE AREA_CODE = ? ORDER BY SHITEN_CODE
<sql:param>3</sql:param>
</sql:query>
<table border="1" align="center" valign="center">
<c:forEach var="e" items="${rset.rows}" varStatus="loop">
<tr>
<td>${loop.count}</td>
<td>${e.SHITEN_CODE}</td>
<td>${e.SHITEN_NAME}</td>
<td>${e.AREA_CODE}</td>
<td>${e.ADDRESS}</td>
<td>${e.EMPLOYEE_NUM}</td>
</tr>
</c:forEach>
</table>
|