当前位置: 代码迷 >> JavaScript >> 经过JS实现struts一个form对应多个action(按钮)
  详细解决方案

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

热度:497   发布时间:2012-10-25 10:58:57.0
通过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();   
  }
  相关解决方案