第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

為啥使用感嘆號(hào)的時(shí)候報(bào)錯(cuò)提示無(wú)效的方法,麻煩各位大大幫忙瞧瞧

Action代碼

public class HelloWorldAction extends ActionSupport {

/**

*?

*/

private static final long serialVersionUID = 1L;


@Override

public String execute() throws Exception {

System.out.println("執(zhí)行Action");

return SUCCESS;

}

//添加

public String add(){

System.out.println("執(zhí)行ADD");

return "add";

}

//更新

public String update(){

System.out.println("執(zhí)行UPDATE");

return "update";

}

}

struts配置的代碼

<struts>

<package name="default" namespace="/" extends="struts-default">

<action name="helloWorld" class="com.hao.action.HelloWorldAction">

<result>/result.jsp</result>

<result name="add">/add.jsp</result>

<result name="update">/update.jsp</result>

</action>

</package>

<constant name="struts.enable.DynamicMethodInvocation" value="true"></constant>

</struts>

運(yùn)行后訪問(wèn)?http://127.0.0.1:8080/HelloWorld/helloWorld!add

報(bào)錯(cuò)提示無(wú)效的方法

http://img1.sycdn.imooc.com//578c8a36000133cd05050047.jpg

正在回答

1 回答

你加上后綴.action試試

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

為啥使用感嘆號(hào)的時(shí)候報(bào)錯(cuò)提示無(wú)效的方法,麻煩各位大大幫忙瞧瞧

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)