年齡輸入字符串時出現(xiàn)錯誤
誰幫我看下這個問題:?
<action name="loginAction" method="login" class="com.imooc.strtus.loginAction">
? ? ? ?<result name="success">/success.jsp</result>
? ? ? ?<result name="input">/login.jsp</result>
? ?</action>
年齡:<input type="text" name="age"/>
public class User {
private String userName;
private String password;
private int age;
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
執(zhí)行出錯:
警告: Could not find action or result: /helloword/loginAction.action
No result defined for action com.imooc.strtus.loginAction and result input - action - file:/F:/Program%20Files/apache-tomcat-6.0.44/webapps/helloword/WEB-INF/classes/a.xml:15:83
2016-06-09
你這個代碼怎么看?錯誤的代碼都不貼、、、、
2016-03-24
看一下你的Action返回的值是不是result name=" "里的值。
2016-03-21
對的吧,不然年齡輸入數(shù)字,是不會跳轉(zhuǎn)成功的,
2016-03-21
你的Action呢?看看你的Action有沒有問題!