亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

年齡輸入字符串時出現錯誤

誰幫我看下這個問題:?

<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;

執行出錯:

警告: 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


正在回答

4 回答

你這個代碼怎么看?錯誤的代碼都不貼、、、、

0 回復 有任何疑惑可以回復我~

看一下你的Action返回的值是不是result name=" "里的值。

0 回復 有任何疑惑可以回復我~

對的吧,不然年齡輸入數字,是不會跳轉成功的,


0 回復 有任何疑惑可以回復我~

你的Action呢?看看你的Action有沒有問題!

0 回復 有任何疑惑可以回復我~
#1

哈哈111111111111111 提問者

對的吧,不然年齡輸入數字,是不會跳轉成功的,
2016-03-21 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

年齡輸入字符串時出現錯誤

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號