📄 list.jsp
字号:
<%@ taglib prefix="logic" uri="/WEB-INF/struts-logic.tld" %><%@ taglib prefix="bean" uri="/WEB-INF/struts-bean.tld" %>
<%@ page language="java" import="java.util.*" import="com.jstu.dto.*" 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 'list.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">
--> <SCRIPT language="javascript"> function confirmIt(n){ if(confirm("删除将无法恢复,是否确认删除?")){ self.location=n; }else{ return false; } } </SCRIPT>
</head>
<body>
<TABLE align="center" border="1">
<TR>
<TH>用户编号</TH><TH>登陆名</TH><TH>密码</TH><TH>E-mail</TH><TH>订货名</TH><TH>地址</TH>
<TH>邮编</TH><TH>地址类别</TH><TH>电话</TH><TH>移动电话</TH><TH>性别</TH><TH>支付卡</TH>
<TH colspan="2">操作</TH>
</TR>
<logic:iterate id="element" name="userDTOs">
<tr>
<td>
<bean:write name="element" property="id" />
</td>
<td>
<bean:write name="element" property="loginName" />
</td>
<td >
<bean:write name="element" property="password" />
</td>
<td>
<bean:write name="element" property="email" />
</td>
<td >
<bean:write name="element" property="userName" />
<td >
<bean:write name="element" property="address" />
</td>
<td>
<bean:write name="element" property="post" />
</td>
<td >
<bean:write name="element" property="addressKind" />
</td>
<td >
<bean:write name="element" property="telephone" />
</td>
<td >
<bean:write name="element" property="mobilephone" />
</td>
<td >
<bean:write name="element" property="sex" />
</td>
<td >
<bean:write name="element" property="mypay" />
</td>
<td >
<span style="cursor:hand" onclick="confirmIt('<%=path%>/user_delete.do?id=<bean:write name="element" property="id" />')">[ 删 除 ]</span>
</td>
<td >
<A href="<%=path%>/jsp/user/edit.jsp?id=<bean:write name="element" property="id" />
&loginName=<bean:write name="element" property="loginName" />
&password=<bean:write name="element" property="password" />
&email=<bean:write name="element" property="email" />
&userName=<bean:write name="element" property="userName" />
&address=<bean:write name="element" property="address" />
&post=<bean:write name="element" property="post" />
&addressKind=<bean:write name="element" property="addressKind" />
&telephone=<bean:write name="element" property="telephone" />
&mobilephone=<bean:write name="element" property="mobilephone" />
&sex=<bean:write name="element" property="sex" />
&mypay=<bean:write name="element" property="mypay" />">修改</A>
</td>
</tr>
</logic:iterate>
</TABLE>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -