在jsp中用bean和servlet联合实现用户注册、登录(16) </form> </table></td> <td width="1" valign="top"></td> <td width="100"> </td> </tr> <tr align="center" bgcolor="#990000"> <td height="60" colspan="5" class="white">copyright© 2003 Shopping123</td> </tr></table></body></html> regpost.jsp:注册表单提交页面<%@ page contentType="text/html;charset=gb2312" pageEncoding="gb2312" %><%@ page import="reg"%><html><head><title>Shopping123</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><link href="styles/shoppingstyle.css" rel="stylesheet" type="text/css"></head><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0"><% String username = new String(request.getParameter("username").getBytes("ISO8859_1")).trim(); String password = new String(request.getParameter("password").getBytes("ISO8859_1")).trim(); String confirm = new String(request.getParameter("confirm").getBytes("ISO8859_1")).trim(); String email = new String(request.getParameter("email").getBytes("ISO8859_1")).trim();%><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr bgcolor="#990000"> <td height="80" colspan="5"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="120"> </td> <td class="caption">Shopping123</td> <td width="200"> </td>