使用继承DispatchAction struts-config的时候 <action .... ... parameter="type"> ActionForm里面增加一个type字段 页面如果传递type=method1 那么会执行你的method1方法。方法签名(参数列表,返回类型)与execute一致
引用 2 楼 shine333 的回复:使用继承DispatchAction struts-config的时候 <action .... ... parameter="method"> ActionForm里面增加一个type字段 页面如果传递method=method1 那么会执行你的method1方法。方法签名(参数列表,返回类型)与execute一……
67,513
社区成员
225,879
社区内容
加载中
试试用AI创作助手写篇文章吧