论坛首页 Java企业应用论坛

struts2与frame框架的问题

浏览 3959 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2012-01-14  
action请求查询了一些数据显示到一个JSP文件,但是这个jsp页面时新窗口打开的,如何显示在frame框架的中间部分,我frame框架分上,中,下。。,,,,小弟认你做师傅
   发表时间:2012-01-14  
target='iframeid'
0 请登录后投票
   发表时间:2012-01-19  
不知道楼上那样的说法,楼主看明白没有?
你的上中下frame都需定义一个ID,然后你就可以定义target="frameid"到你指定的位置
0 请登录后投票
   发表时间:2012-01-19  
通过JS 去刷你的frame 的里的JSP
0 请登录后投票
   发表时间:2012-01-19  
<body>
	<a href="test.html" target="b">a</a><!-- 跳转b -->
	<a href="test.html" target="c">b</a><!-- 跳转c -->
	<a href="test.html" target="a">c</a><!-- 跳转a -->
	<form action="test.html" target="a"><input type="submit" value="跳转"></form>
	<br>
	  <iframe name="a">
	  </iframe>
	  <iframe name="b">
	  </iframe>
	  <iframe name="c">
	  </iframe>
</body>   




特意把代码贴了贴. 费事有些人说,我只会骂而没有说实际的.

其实我发帖的原因,是想骂人.

这样的问题,你好意思问,我也很难好意思答呀.
0 请登录后投票
   发表时间:2012-01-19  
luorongda 写道
<body>
	<a href="test.html" target="b">a</a><!-- 跳转b -->
	<a href="test.html" target="c">b</a><!-- 跳转c -->
	<a href="test.html" target="a">c</a><!-- 跳转a -->
	<form action="test.html" target="a"><input type="submit" value="跳转"></form>
	<br>
	  <iframe name="a">
	  </iframe>
	  <iframe name="b">
	  </iframe>
	  <iframe name="c">
	  </iframe>
</body>   




特意把代码贴了贴. 费事有些人说,我只会骂而没有说实际的.

其实我发帖的原因,是想骂人.

这样的问题,你好意思问,我也很难好意思答呀.

正解,不过好像iframe已经用得比较少了吧?
0 请登录后投票
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics