当前位置 > 首页 > Java

struts2与FCKEditor编辑的整合问题

11/25/2011 11:19:00 AM来源:Java

public class FCKFilter extends FilterDispatcher {
?
public void doFilter(ServletRequest req,ServletResponse res, FilterChain chain) throws IOException, ServletException {
?HttpServletRequest request = (HttpServletRequest) req;
?String URI = request.getRequestURI();
?String[] uriArray = URI.split("/fckeditor/editor/filemanager/connectors/");
?int arrayLen = uriArray.length;
?if (arrayLen >= 2) {
??chain.doFilter(req, res);
??}else {
???super.doFilter(req, res, chain);?
??
??}
?}
}
然web.xml中的org.apache.struts2...换成这个就可以了

?