forward(request,response);Р }Р }Р myconn.close();Р?}catch(Exception e){Р e.printStackTrace();Р?}Р?}Р?Р?protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {Р // TODO Auto-generated method stubР doGet(request,response);Р?}Р}Р4.2 用户注册页面Р注册页面如4-2所示:Р 如图4-2 注册页面Р注册页面“cpc_register.jsp”如下:Р<%@ page language="java" contentType="text/html; charset=UTF-8"Р pageEncoding="UTF-8"%>Р<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" Р<html>Р<head>Р<title>注册新用户</title>Р<script type="text/javascript">Р?function check(form) {Р if (form.name.value == "") {Р alert("用户名不能为空");Р return false;Р }Р if (form.password1.value == "") {Р alert("密码不能为空");Р return false;Р }Р if (form.password2.value == "") {Р alert("确认密码不能为空");Р return false;