要使FckEditor在jsp有上传图片的功能,必须要:
1) webx.ml配置
<servlet-mapping><!-- fckeditor tag need this config -->
<servlet-name>Connector</servlet-name>
<url-pattern>/fckeditor/editor/filemanager/browser/default/connectors/jsp/connector</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SimpleUploader</servlet-name>
<url-pattern>/fckeditor/editor/filemanager/upload/simpleuploader</url-pattern>
</servlet-mapping>
2) jsp中的代码,在fck的标签中加上相应的属性和值
<FCK:editor id="content" basePath="${contextPath}/fckeditor/"
imageBrowserURL="${contextPath}/fckeditor/editor/filemanager/browser/default
/browser.html?Type=Image&Connector=${contextPath}/fckeditor/editor/filemanager/browser/default
/connectors/jsp/connector"
linkBrowserURL="${contextPath}/fckeditor/editor/filemanager/browser/default
/browser.html?Connector=${contextPath}/fckeditor/editor/filemanager/browser/default/connectors
/jsp/connector"
flashBrowserURL="${contextPath}/fckeditor/editor/filemanager/browser/default
/browser.html?Type=Flash&Connector=${contextPath}/fckeditor/editor/filemanager/browser/default
/connectors/jsp/connector"
imageUploadURL="${contextPath}/fckeditor/editor/filemanager/uploa/simpleuploader?Type=Image"
linkUploadURL="${contextPath}/fckeditor/editor/filemanager/upload/simpleuploader?Type=File"
flashUploadURL="${contextPath}/fckeditor/editor/filemanager/upload/simpleuploader?Type=Flash"
autoDetectLanguage="false"
defaultLanguage="zh-cn"
fullPage="true"
height="360"
>
</FCK:editor>
3) 要实现upload的功能function必须要在web.xml配置,且在jsp中指定




















