kindeditor连接报错
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 117 in the jsp file: /Lib/kindeditor/jsp/upload_json.jsp JSONObject cannot be resolved to a type 114: %> 115: <%! 116: private String getError(String message) { 117: JSONObject obj = new JSONObject(); 118: obj.put("error", 1); 119: obj.put("message", message); 120: return obj.toJSONString(); An error occurred at line: 117 in the jsp file: /Lib/kindeditor/jsp/upload_json.jsp JSONObject cannot be resolved to a type 114: %> 115: <%! 116: private String getError(String message) { 117: JSONObject obj = new JSONObject(); 118: obj.put("error", 1); 119: obj.put("message", message); 120: return obj.toJSONString(); An error occurred at line: 108 in the jsp file: /Lib/kindeditor/jsp/upload_json.jsp JSONObject cannot be resolved to a type 105: return; 106: } 107: 108: JSONObject obj = new JSONObject(); 109: obj.put("error", 0); 110: obj.put("url", saveUrl + newFileName); 111: out.println(obj.toJSONString()); An error occurred at line: 108 in the jsp file: /Lib/kindeditor/jsp/upload_json.jsp JSONObject cannot be resolved to a type 105: return; 106: } 107: 108: JSONObject obj = new JSONObject(); 109: obj.put("error", 0); 110: obj.put("url", saveUrl + newFileName); 111: out.println(obj.toJSONString()); Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:331) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:468) org.apache.jasper.compiler.Compiler.compile(Compiler.java:378) org.apache.jasper.compiler.Compiler.compile(Compiler.java:353) org.apache.jasper.compiler.Compiler.compile(Compiler.java:340) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) javax.servlet.http.HttpServlet.service(HttpServlet.java:728) org.springframework.web.filter.Chara
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只要把kinderditor文件夹里面jsp文件夹lib文件夹下的三个类,复制到tomcat文件夹lib文件夹下,就可以了