1.html代码
<input type="submit" name="Submit1" value="提交1" onClick="return nullity1()"> <input type="submit" name="Submit2" value="提交2" onClick="return nullity2()">
2.javascript代码
<script language="javascript"> function nullity1() { form1.action="a.jsp?id=1"; } function nullity2() { form1.action="b.jsp?id=2"; } </script>