<%@page pageEncoding="utf-8"%> 
<% request.setCharacterEncoding("utf-8"); %> 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
		<body>
<!--[if !IE]>Start container <![endif]-->
		 <a href="createUser!input.action">添加</a>    <------------------!input >
 
 <table>
 <tr>
 <th width="40%">name</th>
 <th width="40%">password</th>
 <th width="10%"></th>
 <th width="10%"></th>
 </tr>  
		 <c:forEach var="user" items="${result}">                         <显示逻辑>
  <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>
		</body>