新建Structs2工程,运行时提示为:There is no Action mapped for namespace / and action name getjson 此时可以将Struts.xml放入src目录下即可。