String StrSql="insert into user(values(user_name,user_email)values('"+name+"','"+email+"')";这句有问题,改成
String StrSql="insert into user(user_name,user_email) values('"+name+"','"+email+"')";

解决方案 »

  1.   

    org.apache.jasper.JasperException: Unable to compile class for JSPAn error occurred at line: 3 in the jsp file: /1/login.jspGenerated servlet error:
        [javac] Compiling 1 source fileE:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\_1\login_jsp.java:61: cannot resolve symbol
    symbol  : variable CONCUR_UPDATEABLE 
    location: interface java.sql.ResultSet
    Statement stm=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATEABLE);
                                                                                  ^An error occurred at line: 3 in the jsp file: /1/login.jspGenerated servlet error:
    E:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\_1\login_jsp.java:63: incompatible types
    found   : int
    required: java.sql.ResultSet
    ResultSet rs=stm.executeUpdate(StrSql);
                                  ^
    2 errors
      

  2.   

    (ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATEABLE);里面这个参数错了,CONCUR_UPDATEABLE ,全部去掉试一下。Statement对象没有创建成功。
      

  3.   

    ResultSet rs=stm.executeUpdate(StrSql);改成stm.executeUpdate(StrSql);
      

  4.   

    ResultSet.CONCUR_UPDATEABLE改成ResultSet.CONCUR_UPDATABLE 
    你多加个字符E
      

  5.   

    应该就是这句有问题
    Statement stm=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);如果还有问题在就应改检查sql语句