2011-5-6 10:15:59 com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn
警告: No configuration found for the specified action: 'Login' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
2011-5-6 10:15:59 com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn
警告: No configuration found for the specified action: 'Login' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
--commom中的header.jsp中登录
<font color="red">${result}</font>
<s:form action="Login">
<s:textfield label="用户名" name="userName"></s:textfield>
<s:password label="密码" name="password"></s:password>
<s:submit value="登录"></s:submit>
</s:form>
---struts.xml中的配置
<package name="default" namespace="/" extends="struts-default">
<action name="Login" class="org.CollegePro.ssh.web.action.Login" method="login">
<result name="input">/index.jsp</result>
<result name="error">/error.jsp</result>
</action>
</package>
我在struts中配置了namespace="/",但是在s:form中没有配置namespace,所以运行就出现了2011-5-6 10:15:59 com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn
警告: No configuration found for the specified action: 'Login' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
解决办法就是在s:form中添加namespace="/" <s:form action="Login" namespace="/">即可。