我已经阅读了很多有关此主题的资源,但尚未找到任何澄清解决方案。我按照ckeditor& amp; ckfinder教程并成功实现了上传图像的功能,但我无法集成服务器浏览功能。它始终显示此弹出窗口,如下所示
我已完成的一些步骤
的web.xml
<filter>
<filter-name>FileUploadFilter</filter-name>
<filter-class>com.ckfinder.connector.FileUploadFilter</filter-class>
<init-param>
<param-name>sessionCookieName</param-name>
<param-value>JSESSIONID</param-value>
</init-param>
<init-param>
<param-name>sessionParameterName</param-name>
<param-value>jsessionid</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>FileUploadFilter</filter-name>
<url-pattern>/ckfinder/core/connector/java/connector.java</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>SpringDispatcher</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/config/SpringDispatcher-servlet.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>SpringDispatcher</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>ConnectorServlet</servlet-name>
<servlet-class>com.ckfinder.connector.ConnectorServlet</servlet-class>
<init-param>
<param-name>XMLConfig</param-name>
<param-value>/WEB-INF/config/config.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>ConnectorServlet</servlet-name>
<url-pattern>/ckfinder/core/connector/java/connector.java</url-pattern>
</servlet-mapping>
config.xml中
<baseDir>C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\ROOT\upload</baseDir>
<baseURL>/upload</baseURL> <!-- just modified two attributes in default config -->
的index.jsp
<%@ taglib uri="http://ckeditor.com" prefix="ckeditor" %>
<%@ taglib uri="http://cksource.com/ckfinder" prefix="ckfinder" %>
<textarea name="textareaId" id="textareaId"></textarea>
<ckfinder:setupCKEditor basePath="resources/js/ckfinder/" />
<ckeditor:replace replace="textareaId" basePath="resources/js/ckeditor" />
我还将ckeditor和ckfinder的依赖jar添加到classpath
这些都是我已经完成的。有没有我错过或做错的步骤 请告诉我使用java实现它的完整步骤
提前致谢