`
chilongxph
  • 浏览: 135423 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

There is no Action mapped for action name XX.的解决

阅读更多
There is no Action mapped for action name xx. - [unknown location]
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:186)
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:41)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:494)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)

出现此异常时,看一下你的struts.xml是不是放在/WEB-INF/classes下,

如果是:将其入在 src 下,就可以了, web.xml的配置不变.
你只能把它放在src路径下,不要往深层去放(我的放到了src/META-INF/base下),否则会出上面的错误,可怜我找了两天,经验害死人啊。。。,我也是刚学struts2,没人带。不知道还有什么好的方式来解决没。
分享到:
评论
1 楼 2001430 2010-10-13  

相关推荐

    一个struts2的例子:彻底解决STRUTS2 错误There is no Action mapped for namespace / and action name login

    前几天在网上下载一个struts2的helloword的例子,那个作者也真够缺德的,搞个错误的程序,害得我查了一天的程序错误。 最后发现竟然是struts.xml被写成啦sturts.xml。 碰见这样的问题先鄙视下提供例子的作者, ...

    HTTP Status 404 - There is no Action

    HTTP Status 404 - There is no Action mapped for namespace and action name BackMemberGroupAudit..doc

    weblogic安装部署以及常见问题解决

    该文档对weblogic使用过程中,包括下载,安装,部署...6. weblogic部署war包action不能访问问题解决方法 [There is no Action mapped for namespace / and action name]. 5 7. java.lang.StackOverflowError. 5 等等

    解决使用struts2 时 访问web工程首页问题

    http://localhost:8080/ struts2会拦截,出现异常信息 There is no Action mapped for namespace / and action name.默认配置的welcomefile没有起作用。 按附件配置即可解决此问题

    struts2 HelloWord例字

    在网上找了好个struts2的例子结果都不好使报There is no Action mapped for namespace / and action name这个错,没办法自己搞了个好用的,myeclipse 6.0 +tomcat5.5 + jdk 1.5 引入项目后直接发布就可以了!

    Thinking in Java 4th Edition

    What is finalize() for? ............. 120 You must perform cleanup ......... 121 The termination condition ......... 121 How a garbage collector works .. 122 Member initialization ......... 125 ...

    EurekaLog_7.5.0.0_Enterprise

    7)....Fixed: "Ask for steps to reproduce" dialog is now DPI-aware 8)....Fixed: Silently ignore and fix invalid values in project options EurekaLog 7.2 Hotfix 2 (7.2.2.0), 30-April-2015 1)....Fixed: ...

    Simulating planar reflection using two-pass rendering and texture mapping

    4. There is one rotating triangle floating in the air, casting a shadow on the table, walls and other objects. 5. The program allows the user to move the viewpoint and view direction.

    mybatisMapped报错 Statements collection does not contain value for

    mytabis 报错 Mapped Statements collection does not contain value for

    free_and_open_source_software_for_development.pdf

    has not been well mapped. This book is about FOSS for Development (FOSS4D). We will focus on the Least Developed Countries (LDC's) and primarily on the African context. Most of the LDC's are in Africa...

    A pracitcal introduction to hardware software codesign

    2.1 The Need for Concurrent Models: An Example . . . . . . . . . . . . . . . . . . . . . . 33 2.1.1 Tokens, Actors, and Queues. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 ...

    SQLAlchemy Documentation

    2.1.5 Create an Instance of the Mapped Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.1.6 Creating a Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....

    Advanced Linux 3D graphics programming

    Light Mapped Polygons ...................................142 Software Rasterization of Light Maps............................147 Hardware Light Mapping....................................147 Sample ...

    servlet2.4doc

    Returns the servlet container attribute with the given name, or null if there is no attribute by that name. getAttribute(String) - Method in class javax.servlet.ServletRequestWrapper The default ...

    TCPMouseHook.v1.0.For.Delphi.4.5.6.7.Cracked

    Hooking into the Windows API is a complicated process and there are several techniques to achieve this.Microsoft recommends that the callback procedure for most hooks should reside within a DLL, this ...

    mdp5_kms.rar_GEM

    mapper-id used to request GEM buffer mapped for scanout: int id .

    A Multi-Stage Modeling Framework for Web Service Composition

    Then a multi-stage modeling framework for Web service composition is proposed based on formal modeling language. The framework is semi-automatic. It leverages the advantages of process algebra and ...

    操作系统(内存管理)

    /* It is no longer available */ current_location_mcb->is_available = 0; /* We own it */ memory_location = current_location; /* Leave the loop */ break; } } /* If we made...

    TCPKeyHook.v1.4.For.Delphi.4.5.6.7 Cracked

    Hooking into the Windows API is a complicated process and there are several techniques to achieve this.Microsoft recommends that the callback procedure for most hooks should reside within a DLL, this ...

    微软内部资料-SQL性能优化2

    To reserve or commit memory and unintentionally not release it when it is no longer being used. A process can leak resources such as process memory, pool memory, user and GDI objects, handles, threads...

Global site tag (gtag.js) - Google Analytics