reg.jsp
form的name是form1
表单提交到userdo,传递参数param=reg
<servlet>
<servlet-name>UseUserServlet</servlet-name>
<servlet-class>com.blog.use.action.UserServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>UseUserServlet</servlet-name>
<url-pattern>/use/userdo</url-pattern>
</servlet-mapping>
博客名 blogname
博客签名 blogsign
用户名 username 验证:οnblur="checkUsername(this.value);
用户昵称 nickname 验证:οnblur="checkPassword(this.value);
账户密码 password1 验证:οnblur="checkrepassword(this.value);
电子邮件 email
提交注册:<button type="submit" οnclick="return registSubmit();">
<form id="form1" name="form1" method="post" action="userdo?param=reg">
<h1> BLOG系统 注册</h1>
<label>博客名
<span class="small">8-12个字数或者英文字母</span>
</label>
<input type="text" name="blogname"/>
<label>博客IN签名
<span class="small">6-12个字符</span>
</label>
<input type="text" name="blogsign"/>
<label>用户名
<span class="small" id="userName_note">4-10个英文或者中文</span>
</label>
<input type="text" name="username" οnblur="checkUsername(this.value);"/>
<label>用户昵称
<span class="small">10个以内英文或者中文</span>
</label>
<input type="text" name="nickname"/>
<label>账户密码