日期:2014-05-16  浏览次数:20351 次

jsf 利用 fckeditor进行内容编辑和文件上传
?

一、fckeditor 基本解决中文乱码和可运行的更改程序可参考fangbiao23.iteye.com/admin/show/130831

二、fckeditor在jsf中使用的一些相关设置和修改

web.xml

xml 代码
  1. <!--?在线编辑?-->??
  2. ?<servlet>??
  3. ?<servlet-name>Connector</servlet-name>??
  4. ?<servlet-class>com.fredck.FCKeditor.connector.ConnectorServlet</servlet-class>??
  5. ?<init-param>??
  6. ??<param-name>baseDir</param-name>??
  7. ??<param-value>/EpFbUserFiles/</param-value>??
  8. ?</init-param>??
  9. ?<init-param>??
  10. ??<param-name>debug</param-name>??
  11. ??<param-value>true</param-value>??
  12. ?</init-param>??
  13. ?<load-on-startup>1</load-on-startup>??
  14. </servlet>??
  15. ??
  16. <servlet>??
  17. ?<servlet-name>SimpleUploader</servlet-name>??
  18. ?<servlet-class>com.fredck.FCKeditor.uploader.SimpleUploaderServlet</