我正在尝试将CKEditor-3.5.x与CKFinder-2.2集成到基于Spring 3框架构建的Java Web应用程序中,当我尝试上传图像时,除了“将其发送到服务器”按钮之外,一切似乎都正常工作/ flash文件到服务器。
当我尝试这样做时出现以下错误:
在名为'appServlet'的DispatcherServlet中找不到带有URI [/myapp/ckfinder/core/connector/java/connector.java]的HTTP请求的映射
我需要映射HTTP /myapp/resources/ckfinder/core/connector/java/connector.java
HTTP请求。
我怎么能完成它?
答案 0 :(得分:0)
如果有人提出同样的问题,添加以下内容让我有所帮助:
需要将文本区域与ckeditor和ckfinder集成的.jsp文件
<%@ page import="com.ckeditor.CKEditorConfig" %>
<%
CKEditorConfig settings = new CKEditorConfig();
settings.addConfigValue("filebrowserBrowseUrl","/myapp/resources/ckfinder/ckfinder.html");
settings.addConfigValue("filebrowserImageBrowseUrl","/myapp/resources/ckfinder/ckfinder.html?type=Images");
settings.addConfigValue("filebrowserFlashBrowseUrl","/myapp/resources/ckfinder/ckfinder.html?type=Flash");
settings.addConfigValue("filebrowserUploadUrl","/myapp/resources/ckfinder/core/connector/java/connector.java?command=QuickUpload&type=Files");
settings.addConfigValue("filebrowserImageUploadUrl","/myapp/resources/ckfinder/core/connector/java/connector.java?command=QuickUpload&type=Images");
settings.addConfigValue("filebrowserFlashUploadUrl","/myapp/resources/ckfinder/core/connector/java/connector.java?command=QuickUpload&type=Flash");
%>
<ckeditor:replace replace="editor1" basePath="/myapp/resources/ckeditor/" config="<%=settings %>" />