<input type='button' name='a' onclick="formname.action='a.jsp'">
<input type='button' name='b' onclick="formname.action='b.jsp'">

解决方案 »

  1.   

    楼上正解,另外也可以给每个,或者几个botton做一个form然后用不同的控制,具体参看html语法,<form>标记
      

  2.   

    可以另做一个JSP页面用于判断 例如:
    <%
    String Submit=request.getParameter("Submit");
    out.println(Submit);
     if (Submit !=null && Submit.equals("返回")){
    response.sendRedirect("index.jsp");
    }
    else {
    response.sendRedirect("windos.Close; return false");
    }
    %>
      

  3.   

    也可以另做一个JSP用于判断,例如:
    <%
    String Submit=request.getParameter("Submit");
    out.println(Submit);
     if (Submit !=null && Submit.equals("返回")){
    response.sendRedirect("index.jsp");
    }
    else {
    response.sendRedirect("b.jsp");
    }
    %>