📄 users.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<html>
<head>
<title>用户管理</title>
</head>
<body>
<h1 align="center">
<font color="blue"> 用户管理</font>
</h1>
<html:form action="/users" method="post">
<table width="500" align="center" border="1" bgcolor="#c9fefe">
<tbody>
<tr>
<td>
用户姓名
</td>
<td>
<html:text property="username" size="50" />
<html:errors property="username" />
</td>
</tr>
<tr>
<td>
用户密码
</td>
<td>
<html:password property="password" redisplay="true" size="50" />
<html:errors property="password" />
</td>
</tr>
<logic:present scope="request" parameter="jspId">
<logic:equal value="2" parameter="jspId" scope="request">
<tr>
<td>
重复密码
</td>
<td>
<html:password property="repassword" redisplay="true" size="50" />
<html:errors property="repassword" />
</td>
</tr>
<tr>
<td>
用户性别
</td>
<td>
<html:radio property="sex" value="1" />
男
<html:radio property="sex" value="0" />
女
<html:errors property="sex" />
</td>
</tr>
<tr>
<td>
电子邮箱
</td>
<td>
<html:text property="email" size="50" />
<html:errors property="email" />
</td>
</tr>
<tr>
<td>
QQ号码
</td>
<td>
<html:text property="qqCode" size="50" />
<html:errors property="qqCode" />
</td>
</tr>
<logic:equal value="3" parameter="jspId" scope="request">
<tr>
<td>
注册时间
</td>
<td>
<html:text property="registTime" size="50" />
<html:errors property="registTime" />
</td>
</tr>
</logic:equal>
<tr>
<td>
个人简历
</td>
<td>
<html:textarea property="resume" cols="43" rows="5" />
<html:errors property="resume" />
</td>
</tr>
<tr>
<td>
用户权限
</td>
<td>
<select name="level">
<option value="1">普通用户</option>
<option value="2">中级用户</option>
<option value="3">高级用户</option>
</select>
</td>
</tr>
</logic:equal>
</logic:present>
<tr>
<td colspan="2" align="center">
<logic:equal value="1" parameter="jspId" scope="request">
<html:submit property="method">
<bean:message key="button.update" />
</html:submit>
</logic:equal>
<logic:equal value="2" parameter="jspId" scope="request">
<html:submit property="method">
<bean:message key="button.regist" />
</html:submit>
</logic:equal>
</td>
</tr>
</tbody>
</table>
</html:form>
<br />
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -