<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="../js/jquery-1.7.1.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
function del(id){
$.get("/test_ssh/user/delUser?id=" id,function(data){
if("success" == data.result){
alert("删除成功");
window.location.reload();
}else{
alert("删除失败");
}
});
}
</script>
</head>
<body>
<h6><a href="/test_ssh/user/toAddUser">添加用户</a></h6>
<table border="1">
<tbody>
<tr>
<th>姓名</th>
<th>年龄</th>
<th>操作</th>
</tr>
<c:if test="${!empty userList }">
<c:forEach items="${userList }" var="user">
<tr>
<td>${user.userName }</td>
<td>${user.age }</td>
<td>
<a href="/test_ssh/user/getUser?id=${user.id }">编辑</a>
<a href="javascript:del('${user.id }')">删除</a>
</td>
</tr>
</c:forEach>
</c:if>
</tbody>
</table>
</body>
</html>
资源文件列表
test_ssh/.classpath , 727
test_ssh/.project , 1041
test_ssh/.settings/.jsdtscope , 503
test_ssh/.settings/org.eclipse.jdt.core.prefs , 364
test_ssh/.settings/org.eclipse.wst.common.component , 478
test_ssh/.settings/org.eclipse.wst.common.project.facet.core.xml , 305
test_ssh/.settings/org.eclipse.wst.jsdt.ui.superType.container , 49
test_ssh/.settings/org.eclipse.wst.jsdt.ui.superType.name , 6
test_ssh/build/classes/com/tgb/dao/UserDao.class , 410
test_ssh/build/classes/com/tgb/dao/UserDaoImpl.class , 2272
test_ssh/build/classes/com/tgb/entity/User.class , 1280
test_ssh/build/classes/com/tgb/manager/UserManager.class , 422
test_ssh/build/classes/com/tgb/manager/UserManagerImpl.class , 1278
test_ssh/build/classes/com/tgb/web/UserController.class , 2907
test_ssh/build/classes/config/spring/spring-beans.xml , 845
test_ssh/build/classes/config/spring/spring-common.xml , 2290
test_ssh/build/classes/config/spring/spring-mvc.xml , 1126
test_ssh/src/com/tgb/dao/UserDao.java , 305
test_ssh/src/com/tgb/dao/UserDaoImpl.java , 1502
test_ssh/src/com/tgb/entity/User.java , 911
test_ssh/src/com/tgb/manager/UserManager.java , 313
test_ssh/src/com/tgb/manager/UserManagerImpl.java , 715
test_ssh/src/com/tgb/web/UserController.java , 1913
test_ssh/src/config/spring/spring-beans.xml , 845
test_ssh/src/config/spring/spring-common.xml , 2290
test_ssh/src/config/spring/spring-mvc.xml , 1126
test_ssh/WebContent/addUser.jsp , 756
test_ssh/WebContent/editUser.jsp , 829
test_ssh/WebContent/error.jsp , 367
test_ssh/WebContent/index.jsp , 1315
test_ssh/WebContent/js/jquery-1.7.1.js , 248235
test_ssh/WebContent/login.jsp , 492
test_ssh/WebContent/META-INF/MANIFEST.MF , 39
test_ssh/WebContent/success.jsp , 370
test_ssh/WebContent/WEB-INF/lib/antlr-2.7.7.jar , 445288
test_ssh/WebContent/WEB-INF/lib/aopalliance.jar , 4467
test_ssh/WebContent/WEB-INF/lib/com.springsource.org.apache.commons.fileupload-1.2.0.jar , 54080
test_ssh/WebContent/WEB-INF/lib/com.springsource.org.apache.commons.io-1.4.0.jar , 110412
test_ssh/WebContent/WEB-INF/lib/commons-logging.jar , 60841
test_ssh/WebContent/WEB-INF/lib/dom4j-1.6.1.jar , 313898
test_ssh/WebContent/WEB-INF/lib/hibernate-commons-annotations-4.0.1.Final.jar , 81271
test_ssh/WebContent/WEB-INF/lib/hibernate-core-4.1.6.Final.jar , 4451544
test_ssh/WebContent/WEB-INF/lib/hibernate-jpa-2.0-api-1.0.1.Final.jar , 102661
test_ssh/WebContent/WEB-INF/lib/javassist-3.15.0-GA.jar , 648253
test_ssh/WebContent/WEB-INF/lib/jboss-logging-3.1.0.GA.jar , 60768
test_ssh/WebContent/WEB-INF/lib/jboss-transaction-api_1.1_spec-1.0.0.Final.jar , 11209
test_ssh/WebContent/WEB-INF/lib/jstl.jar , 16905
test_ssh/WebContent/WEB-INF/lib/mysql-connector-java-3.1.13-bin.jar , 456729
test_ssh/WebContent/WEB-INF/lib/ojdbc14.jar , 1545954
test_ssh/WebContent/WEB-INF/lib/spring-aop-3.2.0.RELEASE.jar , 334895
test_ssh/WebContent/WEB-INF/lib/spring-aspects-3.2.0.RELEASE.jar , 69808
test_ssh/WebContent/WEB-INF/lib/spring-beans-3.2.0.RELEASE.jar , 604742
test_ssh/WebContent/WEB-INF/lib/spring-context-3.2.0.RELEASE.jar , 854027
test_ssh/WebContent/WEB-INF/lib/spring-context-support-3.2.0.RELEASE.jar , 127093
test_ssh/WebContent/WEB-INF/lib/spring-core-3.2.0.RELEASE.jar , 863065
test_ssh/WebContent/WEB-INF/lib/spring-expression-3.2.0.RELEASE.jar , 193790
test_ssh/WebContent/WEB-INF/lib/spring-instrument-3.2.0.RELEASE.jar , 7184
test_ssh/WebContent/WEB-INF/lib/spring-instrument-tomcat-3.2.0.RELEASE.jar , 10596
test_ssh/WebContent/WEB-INF/lib/spring-jdbc-3.2.0.RELEASE.jar , 400949
test_ssh/WebContent/WEB-INF/lib/spring-jms-3.2.0.RELEASE.jar , 200380
test_ssh/WebContent/WEB-INF/lib/spring-orm-3.2.0.RELEASE.jar , 392189
test_ssh/WebContent/WEB-INF/lib/spring-oxm-3.2.0.RELEASE.jar , 72501
test_ssh/WebContent/WEB-INF/lib/spring-test-3.2.0.RELEASE.jar , 451556
test_ssh/WebContent/WEB-INF/lib/spring-tx-3.2.0.RELEASE.jar , 240944
test_ssh/WebContent/WEB-INF/lib/spring-web-3.2.0.RELEASE.jar , 624327
test_ssh/WebContent/WEB-INF/lib/spring-webmvc-3.2.0.RELEASE.jar , 635936
test_ssh/WebContent/WEB-INF/lib/spring-webmvc-portlet-3.2.0.RELEASE.jar , 188077
test_ssh/WebContent/WEB-INF/lib/standard-1.1.2.jar , 393259
test_ssh/WebContent/WEB-INF/web.xml , 2206