经过JS实现struts一个form对应多个action(按钮)

通过JS实现struts一个form对应多个action(按钮)通过更改form里的action和隐藏input的method值。 function s

通过JS实现struts一个form对应多个action(按钮)
通过更改form里的action和隐藏input的method值。

 function send(){ document.getElementById("method").value="processSend"; var s = document.getElementById("method").value;  document.form1.action = "<%=contextpath %>/jsp/process/banli.do";         document.form1.submit();     }