当前位置: 代码迷 >> Web前端 >> 解决struts拦截fckeditor的有关问题
  详细解决方案

解决struts拦截fckeditor的有关问题

热度:88   发布时间:2012-10-28 09:54:44.0
解决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/.*

  相关解决方案