An error occurred at line: 4 in the jsp file: /jimeschen/post.jsp
看看post.jsp第四行

解决方案 »

  1.   

    现在我没有换行,为什么还出现下面:
    org.apache.jasper.JasperException: Unable to compile class for JSPAn error occurred at line: 5 in the jsp file: /jimeschen/post.jspGenerated servlet error:
        [javac] Compiling 1 source fileE:\tomcat\work\Standalone\localhost\_\jimeschen\post_jsp.java:90: cannot resolve symbol
    symbol  : variable strSQL 
    location: class org.apache.jsp.post_jsp
     bbsreg.executeUpdate(strSQL);
                          ^
    1 error
      

  2.   

    现在出现这个了?》
    type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception 
      

  3.   

    你定义的strSql,在bbsreg.executeUpdate(strSQL);两个不一样
    改成bbsreg.executeUpdate(strSql);
      

  4.   

    你先把sql语句拿到数据库直接执行一下看看可行,如果能执行就不是语句错误了。
    怎么没有异常处理?
      

  5.   

    你定义的是strSql而引用的是strSQL,当然错了.