首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

appfuse2.0.2(Struts Basic)调整FCKEditor2.4

2012-11-07 
appfuse2.0.2(Struts Basic)整合FCKEditor2.4appfuse2.0.2(SSH)使用了Struts2.0+Spring2.5+hibernate3.2

appfuse2.0.2(Struts Basic)整合FCKEditor2.4
appfuse2.0.2(SSH)使用了Struts2.0+Spring2.5+hibernate3.2 还有sitemesh2.2,其中Struts2和SiteMesh会与FckEditor发生冲突,上网搜了很多资料,整理如下:
一.将FckEditor目录考入Web应用下,将带"_"的和多余的语言包清除掉,删除/_documentation.html,_whatsnew.html,fckeditor.afp,fckeditor.asp,fckeditor.cfc,fckeditor.cfm,fckeditor.lasso,fckeditor.php,fckeditor.pl,fckeditor.py只剩下fckconfig.js,fckeditor.js,fckstyles.xml,fcktemplates.xml,htaccess.txt,license.txt删掉/editor/filemanager/browser/default/connectors、/editor/filemanager/upload、语言包/editor/lang中只留下en.js、zh-cn.js
二.配置web.xml
增加


三.将web.xml中的"<filter-mapping>
        <filter-name>struts</filter-name>
        <url-pattern>/*</url-pattern>
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
    </filter-mapping>"
改为
"<filter-mapping>
        <filter-name>struts</filter-name>
        <url-pattern>*.action</url-pattern>
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
    </filter-mapping>"
其中“*.action”是你的Struts应用后缀,在Struts.xml的“<constant name="struts.action.extension" value="action"/>”中配置.
四.将FCKeditor.tld拷入工程的WEB-INF下.
五.在资源文件中增加两个配置文件,
1.增加fckeditor.properties,内容为
IE下就会无法显示,套入表格可解决该问题,是什么原因我还不知道,例如:
 

热点排行