转自:https://wenku.baidu.com/view/84fa86ae360cba1aa911da02.html 步骤一.建立MethodAction,代码如下: package com.asm; import com.opensymphony.xwork2.ActionSupport; public class MethodAction extends ActionSupport{ public String m1(){ return SUCCESS; } public String…