<pre name="code" class="html">SSH发展历史---2层架构
register.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Register</title>
</head>
<body>
<form method="post" action="registerDeal.jsp">
用户名:<input type="text" name="username" /><br />
密码:<input type="password" name="password" /><br />
确认密码: <input type="password" name="password2"><br />
<input type="submit" value="submited" />
</form>
</body>
</html>
registerDeal.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Register</title></head><body><form method="post" action="registerDeal.jsp">用户名:<input type="text" name="username" /><br /> 密码:<input type="password" name="password" /><br /> 确认密码: <input type="password" name="password2"><br /><input type="submit" value="submited" /></form></body></html>