在conn.execute(strSQL)的
catch(Exception e){
   输出错误提示,然后再找原因啊
}

解决方案 »

  1.   

    发现一个问题,就是我用 数据库中已经注册的用户名注册,之后弹出一个错误窗口,用这个页面,把注册名该一下,程序就正常了,但是我查
    strSQL = "select * from user where username='" + username+"'";
    try{
    rs = conn.executeQuery(strSQL);
    if(rs.next()){
    errors.put("username1","改用户已被注册,请换下一个!");
    issave = true ;

    并没有看出毛病,大家帮我看看把