<%@page pageEncoding="utf-8"%> <body> ?<a href="createUser!input.action">添加</a>??? <------------------!input > ?<c:forEach var="user" items="${result}">???????????????????????? <顯示邏輯> </body>
<% request.setCharacterEncoding("utf-8"); %>
<%@ taglib prefix="c" uri="<%@ taglib prefix="sql" uri="<%@ taglib prefix="f" uri="<%@ taglib prefix="fn" uri="
<!--[if !IE]>Start container <![endif]-->
?
?<table>
?<tr>
?<th width="40%">name</th>
?<th width="40%">password</th>
?<th width="10%"></th>
?<th width="10%"></th>
?</tr>?
??<tr>
??<td>${user.username}</td>
??<td>${user.password}</td>
??<td><a href="editUser!input.action?id=${user.id}" title="編輯該記錄">edit</a></td>
??<td><a href="javascript:if(confirm('您確認刪除嗎?')){document.location.href='deleteUser.action?id=${user.id}'};">delete</a></td>
??</tr>
?</c:forEach>
?</table>