点击了超链接后,无法转入。
本帖最后由 wwwzkl 于 2013-12-28 20:48:38 编辑
<%@ page language="java" import="java.util.*,pojo.User" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'queryUser.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<form action = "/Shopping/shoppingSer" method = "post">
关键字
<input type = "text" name = "uno"/>
<input type = "submit" value = "提交 "/>
<input type = "hidden" name ="status" value = "queryUser"/>
</form>
<form action = "/Shopping/shoppingSer" method = "post" >
<table border ="1">
<tr>
<td>用户账号</td>
<td>密码</td>
<td>身份</td>
<td>电话</td>
<td>更新</td>
<td>删除</td>
</tr>
<%
ArrayList <User> users = (ArrayList)request.getAttribute("selected_users");
if( users !=null ){
for (int i =0;i<users.size();i++)
{%>
<tr>
<td><%=users.get(i).getUno()%></td>
<td><%=users.get(i).getUpassrword()%></td>
<td><%=users.get(i).getStatue()%></td>
<td><%=users.get(i).getPhone()%></td>
<td>更新</td>
<td><a href="/Shopping/shoppingSer?uno=<%=users.get(i).getUno().replaceAll(" ","")%>&status=deleteUser">删除</a></td>
</tr>
<% }
}%>
</table>
</form>
</body>
</html>