日期:2014-05-16  浏览次数:20294 次

struts2集成json异常there is no action mapped for namespace

程序报错:there is no action mapped for namespace

以为是struts.xml配置问题,找了很久也没发现问题

配置里 <package name="myPackage" namespace="/" extends="json-default">extends改成struts-default就不会有此异常。由此可以看出并不是struts.xml配置的异常,那就是json的异常,后来才发现缺少struts和json的集成包 struts2-json-plugin-2.1.8.1.jar