Struts2以单一forms处理多个动作

我有一个表单包含三个按钮print / export / save

      

我怎样才能在struts.xml映射它?

struts.xml ,操作通过标记进行映射

    

要使用标签的method属性,必须启用DynamicMethodInvocation 。 另一种解决方案是使用action属性。

在JSP中:

      

在struts.xml中:

  ...   ...   ...