有两个JSP页面:a.jsp和b.jsp.其中b.jsp页面用iframe嵌套在a.jsp页面中,用于显示查询的数据。
a.jsp的部分代码如下:
<div id="top">
<form action="???" action="???" target="???">
<input type="text" name="test">
<input type="submit" value="ask">
</form>
</div>
<div id="second">
<iframe src="b.jsp" name="pane" id="pane" onload="javascript:dyniframesize('pane');" scrolling="auto" width="100%" frameborder="0"> </iframe>
</div> 请问各位,是否可以或者有什么方法设置让a.jsp在向b.jsp提交表单的时候不让b.jsp在新的窗口显示,而只是刷新在a.jsp中b.jsp页面让其显示。(是否可以通过form中的几个属性的设置来实现,我上面用”?“标示的地方)
谢谢!!
a.jsp的部分代码如下:
<div id="top">
<form action="???" action="???" target="???">
<input type="text" name="test">
<input type="submit" value="ask">
</form>
</div>
<div id="second">
<iframe src="b.jsp" name="pane" id="pane" onload="javascript:dyniframesize('pane');" scrolling="auto" width="100%" frameborder="0"> </iframe>
</div> 请问各位,是否可以或者有什么方法设置让a.jsp在向b.jsp提交表单的时候不让b.jsp在新的窗口显示,而只是刷新在a.jsp中b.jsp页面让其显示。(是否可以通过form中的几个属性的设置来实现,我上面用”?“标示的地方)
谢谢!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货