日期:2014-05-18  浏览次数:20705 次

webwork action问题
我想做的页面有3个frame,如下:
<frameset>
<frame   src=top.htm   />
<frameset>
<frame   src=left.htm   />
<frame   src=right.jsp   />
</frameset>
</frameset>
在right.jsp里需要执行action得到数据,因此在right.jsp里又写了一个iframe如下:
<iframe   name= "newsList "   src= "newsList.Action "   />
执行完action返回页面时整个页面全部刷新了,可是我只向刷新right.jsp这个frame,请问该怎么做才行??

------解决方案--------------------
up
------解决方案--------------------
<frame src= "newsList.Action " name= "newsList " scrolling= "No " noresize= "noresize " id= "leftFrame " title= "leftFrame " />

然后在xwork里配置一下就可以了

<action name= "newsList "
class= "../newsListAction ">
<result name= "success " type= "dispatcher ">
<param name= "location "> / </param>
</result>
<result name= "error " type= "dispatcher ">
<param name= "location "> /error.jsp </param>
</result>
</action>