<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <base href="<%=basePath%>">
   
  <title>用户注册页面</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">  
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<script type="text/javascript">
   
  function kkc(){
var biaodan=document.getElementById("biaodan");
var name=document.getElementById("name").value;
var password=document.getElementById("password").value;
var pwd=document.getElementById("pwd").value;
if (null == name || "".equals(name)) {
alert("用户名不能为空!!");
return;
}
  if (null == password || "".equals(password)) {
alert("密码不能为空!!");
return;
}
if (null == pwd || "".equals(pwd)) {
alert("确认密码不能为空!!");
return;
}if (!pwd.equals(pwd)) {
alert("两次密码不正确!");
return;
}}  biaodan.submit();
}
</script>
  </head>
  
  <body>
  <H3 align=center><FONT size=7 face=楷体_GB2312>欢迎您注册本系统,感谢您的到来!</FONT></H3>
  <form action="t1" id="biaodan" name="biaodan" method="get">
   
  请输入用户名<br><input type="text" id="name" name="name" />
  <br> 
   
  请输入您密码 <br><input type="text" id="password" name="password" />
  <br>
   
  请确认您密码<br><input type="text" id="pwd" name="pwd"/>
  <br> 
  <input type="button" id="button" name="button" onclick="kkc()" value="点击注册"/>
  <input type="reset" id="chongzhi" name="chongzhi" value="信息重置"/>
   
  </form>
  </body>
</html>求解答,在if (null == name || "".equals(name)) {
alert("用户名不能为空!!");后始终无法过去,