关于FCKeditor与Struts2.0的整合问题

各位大侠好,我现在开发一个网站,是基于struts2.0+tomcat6.0+MSSql+MyEclipse6.5,用到了FCKeditor,FCKeditor现在可以实现文字的传输,可是当我上传图片时,MyEclipse控制台输出了如下错误信息:

请问这是为什么,难道还要给FCKeditor配置Action映射吗?

警告: Could not find action or result
There is no Action mapped for action name simpleuploader. - [unknown location]
at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:177)
at org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)
at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:47)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:458)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)

2个回答

[b]注意:[/b]1 如果配置了struts2的话,那么filter不能配制成/*,这样会和fck冲突,出现类似Security error.You probably don't have enough permissions to upload的错误提示,最好是分开写*.action和*.do,不要写成/*
试一下 看行不行?

上传的时候要向服务端请求的 。比如看当前目录下是否还有其他图片,而这些请求被struts拦截了,fckeditor自带了上传文件的servlet,配置一下就可以了

Connector

com.liantuo.util.fckEditor.connector.ConnectorServlet


baseDir
/upload/UserFiles/

1


Connector
*.conn

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐