页面中的html代码如下:
<form name="theForm" method="POST" action="" target="">
 <table>
   <tr align='center' bgcolor="c0c0c0">
    <td colspan='12' height="50">
<input type=button value=" Show Result " onClick="show()">
<input type=button value=" Download Result " onClick="download()">
<input type='reset' value='Reset'>
<input type=button value=" return " onClick="back()">
    </td>
  </tr>
 </table>
</form>

解决方案 »

  1.   

    用javascript控制的代码如下:
    <SCRIPT TYPE="text/javascript">
    function show() {
    document.theForm.target="_blank";
    document.theForm.action = "freeQueryResultShow.jsp";
    document.theForm.submit();
    }
    function download(){
    document.theForm.target="_blank";
    document.theForm.action="freeQueryResultDownload.jsp";
    document.theForm.submit();
    }
    function back() 
    {
    document.theForm.target="";
    document.theForm.action=<%out.print("\"data_list.jsp?datasource="+datasource+"&proc_id="+proc_id+"\"");%>;
    document.theForm.target="mainFrame";
    document.theForm.submit();
    }
    </SCRIPT>
      

  2.   

    <input type="button" value="转到" onclick="window.location='abcd.jsp'">