appfuse2.0 FCKEditor整合

appfuse2.0使用的是SpringMVC
好些默认的设置没有做改变,appfuse中对.html的后缀做dispatcher。赶巧了fckeditor也使用的一些html文件。所以刚开始整合以后fckeditor的请求dipatcher认为没有映射就报错。
这个需要修改web.xml中的staticFilter,发现是fckeditor路径中的html就不用找映射,直接让应用服务器当做html文件直接解析。

例如:

<filter>
        <filter-name>staticFilter</filter-name>
        <filter-class>org.swordsman.webapp.filter.StaticFilter</filter-class>
        <init-param>
            <param-name>includes</param-name>
            <param-value>/scripts/dojo/*,/dwr/*,/fckeditor/*</param-value>
        </init-param>
    </filter>

 
对于html文件,系统也会经过decorators,所以就多了一个页面的头和尾巴。所以在decorators.xml文件中把fckeditor目录下的路径排除即可。

例如:

 <excludes>
        <pattern>/40*.jsp</pattern>
        <pattern>/*ajax=true*</pattern>
        <pattern>/scripts/dojo/*</pattern>
        <pattern>/struts/dojo/*</pattern> 
        <pattern>/resources/*</pattern>
        <pattern>/fckeditor/*</pattern>
    </excludes>

 

网上的这个资料比较少。折腾了将近一天的时间,终于搞定了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值