在jsp中用bean和servlet联合实现用户注册、登录(18) </tr> <tr> <td width="50%" height="24" align="center" bgcolor="#FFFFFF">密码</td> <td align="center" bgcolor="#FFFFFF"><%=password%></td> </tr> <tr> <td width="50%" height="24" align="center" bgcolor="#FFFFFF">E-mail</td> <td align="center" bgcolor="#FFFFFF"><%=email%></td> </tr> </table><% out.print("<br>"); out.print("<a href=javascript:window.close()>关闭</a>"); }else{ out.print("注册失败!<br>"); out.print("该用户名已有人使用,请使用另外的用户名!"); out.print("<a href=javascript:history.go(-1)>返回</a>"); } %> </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> 至此,我们已经完成了一个用户注册、登录的系统。 因为这是本人自己边学边做完成的,所以代码一定有很多不完善的地方,欢迎大家批评指正。 以上所有代码均经本人测试通过。