请高手指教.下面的程序哪里有问题?程序代码太长去后面验证部分代码                                                    
<html>                                                                                   <head>                                                                                                                                                   
<meta http-equiv="Content-Type" content="text/html" charset ="gb2312">                                                                </head>                                                                                  <body> <%
request.setCharacterEncoding("gb2312");
String get_username="name";
Cookie temp = null;
Cookie[] cookies = request.getCookies(); //??Cookie??
int cookielen = cookies.length; //??Cookie???????
if(cookielen != 0) 
{
for (int i = 0; i < cookielen; {
temp = cookies
if (temp.getName().equals("usercase"))
{ get_username= temp.getValue();
}
}
}if(!(get_username.equals("name")))
{
  response.sendRedirect("haslog.jsp");
}
 
 String username = request.getParameter("username");
  if ( username == null ) {
    username = "";
  }
  String email = request.getParameter("email");
  if ( email == null ) {
    email = "";
  }
  String realname = request.getParameter("realname");
  if ( realname == null ) {
    realname = "";
  }
  String company = request.getParameter("company");
  if ( company == null ) {
    company = "";
 String phone = request.getParameter("phone");
  if ( phone == null ) {
    phone = "";
  }
  
    String cellphone = request.getParameter("cellphone");
  if ( cellphone == null ) {
    cellphone = "";
  }
%>
<table width="778" height="303" align="center" bgcolor="#C5EBFE">                                                                          <form name="theForm" action="newuser" id="demo" method="post" onSubmit="return Validator.Validate(this,2)">                                                                                  <tr>
    <td colspan="4">
<table>
      <tr>
        <td width="645" bgcolor="#c5ebfe"><table>
          <tr>
            <td colspan="4"><table>
                <tr>
                  <td width="645" bgcolor="#c5ebfe"><strong>&Ccedil;&euml;&Igrave;&icirc;&ETH;&acute;&Ograve;&Ocirc;&Iuml;&Acirc;×&cent;&sup2;á&ETH;&Aring;&Iuml;&cent;&pound;&not;*±ê×&cent;&micro;&Auml;±í&Ecirc;&frac34;±&Oslash;&ETH;&euml;&Igrave;&icirc;&ETH;&acute; </strong></td>
                </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table>
</td>
    </tr>
  
  <tr>
    <td width="153">&nbsp;</td>
    <td width="107"><div align="left"> &Oacute;&Atilde;&raquo;§&Atilde;&ucirc; <font size="2"><font color="#FF0000">*</font></font> &pound;&ordm; </div></td>
    <td><input name="username" value="<%=username%>" dataType ="Username" msg ="&Oacute;&Atilde;&raquo;§&Atilde;&ucirc;&sup2;&raquo;·&ucirc;&ordm;&Iuml;&sup1;&aelig;&para;¨&pound;¨&Euml;&Auml;&Icirc;&raquo;&Ograve;&Ocirc;&Eacute;&Iuml;&Oacute;&cent;&Icirc;&Auml;×&Ouml;&Auml;&cedil;&ordm;&Iacute;&Ecirc;&yacute;×&Ouml;&pound;&copy;"> </td>                                                                                  <td>&nbsp;</td>
  </tr>                                                                                    <tr>
    <td>&nbsp;</td>
    <td><div align="left"> &Atilde;&Uuml;&Acirc;&euml; <font size="2"><font color="#FF0000">*</font></font> &pound;&ordm; </div></td>
    <td><input name="password" dataType ="SafeString"   msg ="&Atilde;&Uuml;&Acirc;&euml;&sup2;&raquo;·&ucirc;&ordm;&Iuml;°&sup2;&Egrave;&laquo;&sup1;&aelig;&Ocirc;ò&pound;¨&Aacute;ù&Icirc;&raquo;&Ograve;&Ocirc;&Eacute;&Iuml;&Oacute;&cent;&Icirc;&Auml;&ordm;&Iacute;&Ecirc;&yacute;×&Ouml;&pound;&copy;" type="password"></td>                                                                                                                                                        <td>&nbsp;</td>
  </tr>                                                                                   
  <tr>
    <td>&nbsp;</td>
    <td><div align="left"> &Ouml;&Oslash;&cedil;&acute;&pound;&ordm; </div></td>
    <td><input name="password1" dataType ="Repeat" to ="Password" msg ="&Aacute;&frac12;&acute;&Icirc;&Atilde;&Uuml;&Acirc;&euml;&sup2;&raquo;&AElig;&yen;&Aring;&auml;" type="password"></td>                                                                                                                                                             <td>&nbsp;</td>
  </tr>                                                                                                                                                           
    
  <tr>
    <td>&nbsp;</td>
    <td><div align="left"> &Otilde;&aelig;&Ecirc;&micro;&ETH;&Otilde;&Atilde;&ucirc; <font size="2"><font color="#FF0000">*</font></font> &pound;&ordm; </div></td>
    <td><input name="realname" type="text" value="<%=realname%>" dataType="Chinese" msg="&Otilde;&aelig;&Ecirc;&micro;&ETH;&Otilde;&Atilde;&ucirc;&Ccedil;&euml;&Ecirc;&auml;&Egrave;&euml;&ordm;&ordm;×&Ouml;"></td>                                                                                             
    <td>&nbsp;</td>
  </tr>                                                                                        <tr>
     <td>&nbsp;</td>
     <td><div align="left"> &micro;&yen;&Icirc;&raquo;&micro;&Oslash;&Ouml;·&pound;&ordm; </div></td>
     <td><textarea name="address" cols="35" rows="2" id="address"><%=address%></textarea></td>  
     <td>&nbsp;</td>
   </tr>
   
   <tr>
     <td>&nbsp;</td>
     <td><div align="left"> &micro;&ccedil;&raquo;°&pound;&ordm; </div></td>
     <td><input name="phone" value="<%=phone%>" require ="false" dataType ="Phone" msg ="&micro;&ccedil;&raquo;°&ordm;&Aring;&Acirc;&euml;&sup2;&raquo;&Otilde;&yacute;&Egrave;·"></td>                                                                                <td>&nbsp;</td>
   </tr>                                                                               <tr>
     <td>&nbsp;</td>
     <td><div align="left"> &Ecirc;&Ouml;&raquo;ú&pound;&ordm; </div></td>
     <td><input name="cellphone" value="<%=cellphone%>" require= "false" dataType= "Mobile" msg ="&Ecirc;&Ouml;&raquo;ú&ordm;&Aring;&Acirc;&euml;&sup2;&raquo;&Otilde;&yacute;&Egrave;·"></td>                                                                                                                                                                           <td>&nbsp;</td>
   </tr>     
 
   </tr>                                                                                                   <tr>                                                                                                                 
   <td colspan="2">
     <div align="right">     </div>
    <td width="275"><input name="Submit" type="submit" value="&Igrave;á&frac12;&raquo;">
      <input type="reset" name="Submit2" value="&Ouml;&Oslash;&Ouml;&Atilde;">   
    
    <td width="223">  </tr>                                                                                                                                                                            </form>                                                                                 </table>                                                                            type Status reportmessage /newuserdescription The requested resource (/newuser) is not available.
--------------------------------------------------------------------------------Apache Tomcat/5.0.28