`
Chance.
  • 浏览: 20760 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

解决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/.*

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics