<input type="button" onClick="window.location.href='test.jsp';">

解决方案 »

  1.   

    <jsp:forward  page="goto.jsp" />
      

  2.   

    <input type="button" onClick="window.location.href='test.jsp';">
      

  3.   

    <input type="submit" onClick="window.location.href = 'hcqxqk.jsp';" name="Submit" value="添加">
    我的按钮是submit型 
    如果是<input type="button" onClick="window.location.href='test.jsp';">
    那我本页的内容提交不了!请赐教!
      

  4.   

    form的action里写跳转的页面,就可以提交了
      

  5.   

    是想提交本页的同时也刷新另外一个页面
    form的action里写的是本页面因为是想在本页面提交并executeUpdate(sql)
    按钮只是起一个提交和连接的作用。可以实现吗?