在一个jsp页面里怎么防止2个action刷新
在一个页面有2个提交
但都是提交在一个页面上应该怎么写呢?
<form id="form1" name="form1" method="post" action="index.jsp">
请输入单号:
<input type="text" name="testname"size="15 "/>
<input type="submit" name="Submit"onclick="return myclick()" value="查询" />
</form>
<form id="form2" name="form2" method="post" action="index.jsp">
请输入单号:
<input type="text" name="testname2"size="15 "/>
<input type="submit2" name="Submit2"onclick="return myclick()" value="查询" />
</form></td>
假如我查询上面的在查下面的都要显示
怎么防止刷新呢?