Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Servlet/JSP/JSF/JavaFX Script  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
reply to postflat modethreaded modego to previous topicgo to next topicgo to back
话题被移动
该话题已被移动 - why , 2005-10-01 19:00
如果您尚不清楚该话题被移动的原因,请参考论坛规则以及本版公告或者联系本版版主。
作者 怎么修改下面的错误?(unclosed string literal)
linkeca





发贴: 15
于 2005-10-01 17:17 user profilesend a private message to usersend email to linkecareply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
The FAQ board is for Questions that're Frequently Asked. Smile

请尽量使用准确的文字描述作为标题
若新帖再無恰当标题,可能会被刪除
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)


why edited on 2005-10-01 18:59


一个程序员的奋斗历程

话题树型展开
人气 标题 作者 字数 发贴时间
2450 怎么修改下面的错误?(unclosed string literal) linkeca 2448 2005-10-01 17:17
1890 Re:怎么修改下面的错误?(unclosed string literal) YuLimin 23 2005-10-02 14:44
2055 Re:怎么修改下面的错误?(unclosed string literal) chengbd 90 2005-10-03 13:12

reply to postflat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   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