Topic: 怎么修改下面的错误?(unclosed string literal) |
Print this page |
1.怎么修改下面的错误?(unclosed string literal) | Copy to clipboard |
Posted by: linkeca Posted on: 2005-10-01 17:17 The FAQ board is for Questions that're Frequently Asked. 请尽量使用准确的文字描述作为标题 若新帖再無恰当标题,可能会被刪除 Original subject : 请在大侠帮忙解决,怎么修改下面的错误? 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: 12 in the jsp file: /reg3.jsp Generated servlet error: D:\Tomcat\work\Catalina\localhost\myweb\org\apache\jsp\reg3_jsp.java:104: unclosed string literal String sql="insert custom(uid,nickname,gender,pwd,realname,career,address,email,tel,birth) ^ An error occurred at line: 12 in the jsp file: /reg3.jsp Generated servlet error: D:\Tomcat\work\Catalina\localhost\myweb\org\apache\jsp\reg3_jsp.java:105: illegal character: \92 values(\'"+uid+"\',\'"+nickname+"\',\'"+pwd+"\',\'"+career+"\',\'"+address+"\',\'"+email+"\',\'"+tel+"\',\'"+birth+"\')"; ^ An error occurred at line: 12 in the jsp file: /reg3.jsp Generated servlet error: D:\Tomcat\work\Catalina\localhost\myweb\org\apache\jsp\reg3_jsp.java:105: unclosed character literal values(\'"+uid+"\',\'"+nickname+"\',\'"+pwd+"\',\'"+career+"\',\'"+address+"\',\'"+email+"\',\'"+tel+"\',\'"+birth+"\')"; ^ Generated servlet error: D:\Tomcat\work\Catalina\localhost\myweb\org\apache\jsp\reg3_jsp.java:116: ';' expected } catch (Throwable t) { ^ 4 errors org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) |
2.Re:怎么修改下面的错误?(unclosed string literal) [Re: linkeca] | Copy to clipboard |
Posted by: YuLimin Posted on: 2005-10-02 14:44 检查你的引号是否对称了,有左引号而没有右引号。 |
3.Re:怎么修改下面的错误?(unclosed string literal) [Re: linkeca] | Copy to clipboard |
Posted by: chengbd Posted on: 2005-10-03 13:12 String sql="insert custom(uid,nickname,gender,pwd,realname,career,address,email,tel,birth) |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |