?? registry.jsp
字號:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%
request.setCharacterEncoding("utf-8");
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String message=request.getParameter("message");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'registry.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 method="post" name="registry" action="<%=path%>/user/registry">
<p> <input type="hidden" value="Customer" name="type">
</p>
<table width="300" border="0" align="center">
<tbody>
<tr>
<td>
<table width="300" border="0" align="center">
<tbody>
<tr>
<td>
用戶名:
</td>
<td >
<input type="text" name="name">
</td>
<td>
*
</td>
</tr>
<tr>
<td>
真實姓名:
</td>
<td>
<input type="text" name="realname" size="20">
</td>
<td>
*
</td>
</tr>
<tr>
<td>
密碼:
</td>
<td>
<input type="password" name="password" size="22">
</td>
<td>
*
</td>
</tr>
<tr>
<td>
確認密碼:
</td>
<td>
<input type="password" name="passwordcheck" size="22">
</td>
<td>
*
</td>
</tr>
<tr>
<td>
郵寄地址:
</td>
<td>
<input type="text" name="address">
</td>
<td>
*
</td>
</tr>
<tr>
<td>
郵編:
</td>
<td>
<input type="text" name="code">
</td>
<td>
*
</td>
</tr>
<tr>
<td>
E-Mail:
</td>
<td>
<input type="text" name="email">
</td>
<td>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
<table width="200" border="0">
<tbody>
<tr>
<td>
<input type="submit" value="提交" name="submit">
</td>
<td>
<input type="reset" value="重置" name="reset">
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<%
if( message !=null)
{
%>
<div align="center">
<strong><font color="red">注冊失敗!<%= message %></font>
</strong>
</div>
<%
}
%>
<p>
</p>
<p>
<br>
</p>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -