1

我正在尝试将 CKEditor-3.5.x 与 CKFinder-2.2 集成到基于 Spring 3 框架构建的 Java Web 应用程序中,当我尝试上传图像/闪存文件时,除了“将其发送到服务器”按钮之外,一切似乎都正常工作到服务器。

当我尝试这样做时,我收到以下错误:

在名称为“appServlet”的 DispatcherServlet 中找不到具有 URI [/myapp/ckfinder/core/connector/java/connector.java] 的 HTTP 请求的映射

我需要/myapp/resources/ckfinder/core/connector/java/connector.java映射 HTTP 请求。

我怎么能完成它?

4

1 回答 1

0

如果有人遇到同样的问题,添加以下内容对我有用:

.jsp 文件,需要将文本区域与 ckeditor 和 ckfinder 集成

<%@ 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 %>" />
于 2012-04-07T23:31:19.780 回答