<actionname="savePage"class="PageAction"method="save"><resultname="ess"type="dispatcher"></result><interceptor-refname="params"/></action>------------------------------------------------------------------------------------------------------------------------一:'method'属性<actionname="memberEdit"method="memberEdit"class=""><resultname="memberEdit">/WEB-INF/adminjsp/</result></action>直接访问就行了http://localhost:8080/test/:在<s:submitname="method:xxxx"value="提交"/>中定义,:访问Action时,在Action名后加上“!xxx”(xxx为方法名)。例如:http://localhost:8080/test/memberEdit!,不知道错在哪?----------------------------------------------------------------------------------------------------------------------不使用默认的execute()方法,为每个Action写一个自己的方法,如Login(),LoginAgain()等。2、
struts2的action自定义方法 来自淘豆网m.daumloan.com转载请标明出处.