Struts2以单一forms处理多个动作
我有一个表单包含三个按钮print
/ export
/ save
。
我怎样才能在struts.xml
映射它?
在struts.xml
,操作通过
要使用
标签的method
属性,必须启用DynamicMethodInvocation
。 另一种解决方案是使用action
属性。
在JSP中:
在struts.xml中:
... ... ...