hcr526
2009-11-06 14:30
浏览 199
已采纳

关于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条回答 默认 最新

  • iteye_7735 2009-11-13 13:22
    已采纳

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

    已采纳该答案
    评论
    解决 无用
    打赏 举报
  • mazzystar0 2009-11-06 22:42

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

    Connector

    com.liantuo.util.fckEditor.connector.ConnectorServlet


    baseDir
    /upload/UserFiles/

    1


    Connector
    *.conn

    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题