org.apache.struts2.components.ActionComponent.executeAction(ActionComponent.java:259) >>
Could not execute action: /searc/showAction!load
There is no Action mapped for namespace /searc and action name showAction. - [unknown location]
是因为我没有在xml里面配置的原因吗。我看百度上有一些相似的问题,他们在xml里面配置后也出现这样的问题。烦请能仔细讲解一下,不胜感激!
这个一般是一一对应的,namespace一般用来指定一个前缀。前台的请求地址和后台必须要统一的,你说的那种方式我没用过。
能给我贴出你的xml配置吗?
出现这个问题一般是
<package name="任意" extends="struts-default" namespace="/">
里面的namespace配置的有问题