求助!关于struts2中action的问题
我使用struts-2.3.15.3最新的版本,再使用<s:form>标签时<s:form action="person!add">使用报错,
但是使用<s:form action="personadd"> 然后再struts.xml中使用*通配符,调用method={1},没有错,
使用<s:form action="person"> 也会自动调用execute.
自己思考后是不是新版本没有这个功能了????望大神解决
下面是错误信息,
警告: No configuration found for the specified action: 'person!add' in namespace: '/'. Form action defaulting to 'action' attribute's literal value.
2013-11-12 19:49:23 org.apache.struts2.components.ServletUrlRenderer warn
警告: No configuration found for the specified action: 'person!add' in namespace: '/'. Form action defaulting to 'action' attribute's literal value.
2013-11-12 19:49:34 org.apache.struts2.dispatcher.Dispatcher warn
警告: Could not find action or result
There is no Action mapped for namespace [/] and action name [person!add] associated with context path [/struts2_demo]. - [unknown location]
at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:185)
at org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63)
at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:553)
at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1805)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
2013-11-12 19:49:34 org.apache.struts2.dispatcher.Dispatcher error
严重: Exception occurred during processing request: There is no Action mapped for namespace [/] and action name [person!add] associated with context path [/struts2_demo].
There is&n