我在点击文件上传里的浏览服务器按钮后,会弹出浏览窗口,但是会报以下的错误:
The Server didn 't send back a proper XML response。
请问这个怎样解决啊?谢谢!
------解决方案--------------------
web.xml配置有问题:
<servlet>
<servlet-name> Connector </servlet-name>
<servlet-class>
com.fredck.FCKeditor.connector.ConnectorServlet
</servlet-class>
<init-param>
<param-name> baseDir </param-name>
<param-value> /blog/UserFiles/ </param-value>
</init-param>
<init-param>
<param-name> debug </param-name>
<param-value> true </param-value>
</init-param>
<load-on-startup> 1 </load-on-startup>
</servlet>
<servlet>
<servlet-name> SimpleUploader </servlet-name>
<servlet-class>
com.fredck.FCKeditor.uploader.SimpleUploaderServlet
</servlet-class>
<init-param>
<param-name> baseDir </param-name>
<param-value> /blog/UserFiles/ </param-value>
</init-param>
<init-param>
<param-name> debug </param-name>
<param-value> true </param-value>
</init-param>
<init-param>
<param-name> enabled </param-name>
<param-value> true </param-value>
</init-param>
<init-param>
<param-name> AllowedExtensionsFile </param-name>
<param-value> </param-value>
</init-param>
<init-param>
<param-name> DeniedExtensionsFile </param-name>
<param-value>
php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi
</param-value>
</init-param>
<init-param>
<param-name> AllowedExtensionsImage </param-name>
<param-value> jpg|gif|jpeg|png|bmp </param-value>
</init-param>
<init-param>
<param-name> DeniedExtensionsImage </param-name>
<param-value> </param-value>
</init-param>
<init-param>
<param-name> AllowedExtensionsFlash </param-name>
<param-value> swf|fla </param-value>
</init-param>
<init-param>
<param-name> DeniedExtensionsFlash </param-name>
<param-value> </param-value>
</init-param>
<load-on-startup> 1 </load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name> Connector </servlet-name>
<url-pattern>
/blog/fckeditor/editor/filemanager/browser/default/connectors/jsp/connector
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name> SimpleUploader </servlet-name>
<url-pattern>
/blog/fckeditor/editor/filemanager/upload/simpleuploader
</url-pattern>
</servlet-mapping>
这里的路径都得修改.