Struts2 整合 fckeditor 例子

最近一个项目可能要用到struts2 和fckeditor  ,众所周知的拦截冲突问题来了,照例,先Google之,最后发现神仙啊,大量的文章不外乎两类,1 修改struts2拦截器 url 从/*改到/*.action什么的 2 ,自己修改struts2 的filter,绕过对 fckeditor 拦截,总觉得两种方式都不满意,记得以前用dwr时也存在这个问题,后来发现了一个简单的办法
只要在strust.properties文件中添加如下配置即可
struts.action.excludePattern=/dwr/.*,/dwr/test/.*,/fckeditor/editor/filemanager/connectors/.*

你可能感兴趣的:(struts,servlet,DWR,Google,fckeditor)