jsp 添加到数据库错误
小弟刚写的jsp页面,用来添加新用户和密码并显示,可是有点错误不是很明白
求解决方法,由于是新手,请说明原理,详细为好。。谢!
错误页面如下:
--------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 6 in the jsp file: /jdbc.jsp
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\test\org\apache\jsp\jdbc_jsp.java:59: unclosed character literal
stmt.excuteUpdate( "insert into tbuser values( ' "+name+ ' ", ' "+pwd+ ' ") ");
^
An error occurred at line: 6 in the jsp file: /jdbc.jsp
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\test\org\apache\jsp\jdbc_jsp.java:59: unclosed character literal
stmt.excuteUpdate( "insert into tbuser values( ' "+name+ ' ", ' "+pwd+ ' ") ");
^
An error occurred at line: 6 in the jsp file: /jdbc.jsp
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\test\org\apache\jsp\jdbc_jsp.java:59: unclosed character literal
stmt.excuteUpdate( "insert into tbuser values( ' "+name+ ' ", ' "+pwd+ ' ") ");
^
An error occurred at line: 6 in the jsp file: /jdbc.j