<FORM METHOD=POST ACTION="1.jsp">
<input type=button value="submit" onclick="this.form.submit();">
<input type=button value="save" onclick="this.form.action = '2.jsp';this.form.submit();";>
</FORM>
<input type=button value="submit" onclick="this.form.submit();">
<input type=button value="save" onclick="this.form.action = '2.jsp';this.form.submit();";>
</FORM>
但可以通过JS来控制提交的页面,用下面的代码试试
<SCRIPT LANGUAGE = "JavaScript" TYPE = "Text/JavaScript">
function gouwu()
{
var inputName = event.srcElement.getAttribute("name");
var ActionValue = "1.jsp";
ActionValue = inputName == "B"?"2.jsp":ActionValue;
document.form1.action=ActionValue;
alert(ActionValue)
FormName.submit();
}</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></HEAD>
<BODY>
<form name="form1" method="post">
<input name="A1" type="button" onClick="gouwu()" value="提交"
<input name="B2" type="button" onClick="gouwu()" value="保存"
<input name="test" type="hidden" value="bbbbbbbbbbbbbb">
</form>