<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>会员注册</title>
</head>
<body>
<div id="Layer1" class="style1" style="position:absolute; left:297px; top:20px; width:175px; height:24px; z-index:1">欢迎您,请您注册</div>
<form name="form1" method="post" action="">
  <p>&nbsp;</p>
  <p class="style1">用户名
    <input type="text" name="name">
</p>
  <p class="style1">密码 
    <input type="password" name="password1"> 
  (不能少于8位)</p>
  <p class="style1">确认密码
    <input type="password" name="password2"> 
  </p>
  <p class="style1">您的邮箱
    <input type="text" name="email"> 
    (你取回密码的途径)</p>
  <p class="style1">
    <input type="submit" name="Submit" value="提交">
    <input type="reset" name="Submit" value="重置">
</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
</form>
<%
String hname=request.getParameter("name");
byte b[]=hname.getBytes("ISO-8859-1");
hname=new String(b);
if(hname!=null)
out.print(hname);
else
out.print("请输入你想要的用户名");
String hpassword1=request.getParameter("password1");
double str1=0;
if(hpassword1!=null)
{
 str1=Double.parseDouble(hpassword1);
}
String hpassword2=request.getParameter("password2");
double str2=0;
if(hpassword2!=null)
{
 str2=Double.parseDouble(hpassword2);
}
if(str1!=str2)
{
out.print("你的密码前后不一致");
}
%>
<%
String str=request.getParameter("email");
if(str!=null)
{
int index=str.indexOf("@");
if(index==-1)
out.print("邮件格式错误");
else 
{
int space=str.indexOf(" ");
if(space!=-1)
out.print("你的邮件格式含有非法空格");
}
}
else out.print("邮件格式正确");
%>

</body>
</html>
哪里有误?