不知道我有没有明白你的意思?
给两个表单弄两个FORM不行吗?

解决方案 »

  1.   

    button触发onclick事件,每个button写一个function,对应的form action进行指定
      

  2.   

    通过用request.getParamByName(“按钮名称”)获得按钮的Value属性,来区别要提交到的页面。
      

  3.   

    <input type="button" name="add" onclick="FrmCheck('add');" value=" 提 交 ">
    <input type="button" name="edit" onclick="FrmCheck('edit');" value=" 修 改 "><script language="javaScript">
    function FrmCheck(status){
      if (status=="add"){
    document.thisForm.action="Center1.jsp?flag=add";
      }else if (status=="edit"){
    document.thisForm.action="Center2.jsp?PerID=<%=PerID%>&flag=edit";
      }
    }
    </script>
    thisForm.submit(); }