警告: No configuration found for the specified action: '/pages/login' in namespace: '/pages'. Form action defaulting to 'action' attribute's literal value.
2011-5-6 8:42:06 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: No configuration found for the specified action: '/pages/login' in namespace: '/pages'. Form action defaulting to 'action' attribute's literal value.
2011-5-6 8:42:10 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: No configuration found for the specified action: '/pages/login' in namespace: '/pages'. Form action defaulting to 'action' attribute's literal value.
2011-5-6 8:42:10 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: No configuration found for the specified action: '/pages/login' in namespace: '/pages'. Form action defaulting to 'action' attribute's literal value.
解决方法:
未解决前:
<s:form action="/pages/login" method="post" >
<s:textfield name="username" label="用户名"/>
<s:submit value="提交"/>
</s:form>
解决后:
<s:form action="login" method="post" namespace="/pages">
<s:textfield name="username" label="用户名"/>
<s:submit value="提交"/>
</s:form>