解决struts拦截fckeditor的问题

最近给学校做一个网站,用的是SSH+fckeditor。可是发现struts和fckeditor整合时struts会拦截fckeditor用于处理上传的servlet Google了两天,大概有几种方法总结一下: 1.改变web.xml配置 原web.xml中的struts配置 struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2 /* 改为: struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2 /.action struts2 /.jsp 但是不知道什么原因访问action时的动态方法调用似乎不好使了…… 2.重写fckeditor的上传servlet 这个我觉得太麻烦了,所以直接pass掉了 3.考虑如果被struts拦截后能不能不被struts处理,直接被拿出来,所以又Google了一下啊发现了下面的极品方法 在不改变struts的web.xml基础上配置struts.xml 在struts.xml中加入 如果用strust.properties,配置方法是 struts.action.excludePattern=/fckeditor/editor/filemanager/connectors/.*

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值