通配符的問題
? <action name="helloworld_*"? method="{1}" class="com.action.action">
??? <result >/index.jsp</result>
? <result name="{1}">/{1}.jsp</result>
? <result name="{1}">/{1}.jsp</result>
? </action>
為什么總是跳轉(zhuǎn)到index.jsp而跳轉(zhuǎn)不到add.jsp
? <action name="helloworld_*"? method="{1}" class="com.action.action">
??? <result >/index.jsp</result>
? <result name="{1}">/{1}.jsp</result>
? <result name="{1}">/{1}.jsp</result>
? </action>
為什么總是跳轉(zhuǎn)到index.jsp而跳轉(zhuǎn)不到add.jsp
2017-08-12
舉報
2017-09-13
action.java里面的add()和update()方法的返回值 ?即return要寫上相對應(yīng)的方法名,我的問題和你的一樣,
add()方法的return值是add,update()的方法的return值是update,實測就是這樣!視屏沒寫沒辦法@?。。。?!
2017-08-20
你沒事配置2個一模一樣的result干嘛?閑的?不寫name默認success,那看你返回的字符串是什么!
2017-08-13
actino的源碼呢? 應(yīng)該是你的 add method 返回的是 SUCCESS 第二行 你這句<result >/index.jsp</result> 表示了 SUCCESS 要顯示的頁面是 index.jsp