javascript - kindeditor를 사용해본 사람이 있나요? 이 서식 있는 텍스트에 업로드된 이미지를 어떻게 설정합니까? 오류가 발생하는 이유는 무엇입니까?

WBOY
풀어 주다: 2016-08-04 09:20:56
원래의
939명이 탐색했습니다.

변경해야 할 사항과 저장 경로를 어디로 변경해야 하는지 아시는 분은 알려주세요

<code>
An error occurred at line: 117 in the jsp file: /editor/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: /editor/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: /editor/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: /editor/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:] with root cause
org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 117 in the jsp file: /editor/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: /editor/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: /editor/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: /editor/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:
    at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
    at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
    at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:485)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:379)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at cn.qtone.xxt.base.utiltity.UrlFilter.doFilter(UrlFilter.java:114)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:662)
</code>
로그인 후 복사
로그인 후 복사

답글 내용:

변경해야 할 사항과 저장 경로를 어디로 변경해야 하는지 아시는 분은 알려주세요

<code>
An error occurred at line: 117 in the jsp file: /editor/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: /editor/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: /editor/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: /editor/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:] with root cause
org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 117 in the jsp file: /editor/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: /editor/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: /editor/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: /editor/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:
    at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
    at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
    at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:485)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:379)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at cn.qtone.xxt.base.utiltity.UrlFilter.doFilter(UrlFilter.java:114)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:662)
</code>
로그인 후 복사
로그인 후 복사

어떤 오류가 보고되나요? 스크린샷을 찍거나 설명해 주세요. 오류를 신고했는지 누가 알겠어요

쓰기 권한이 있나요?

관련 라벨:
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿