又遇到一个新的问题,这种情况,该不该使用tiles.
coaa 2004-03-25 09:17:03 在http://expert.csdn.net/Expert/topic/2861/2861879.xml?temp=.8806269里面讨论了,有关如何使用tiles的问题.
由于页面上的显示,采用如下的方案:
<html>
<head>
<title><tiles:getAsString name="title"/></title>
</head>
<frameset rows="*,60" >
<frame name="upframe" src="<tiles:getAsString name="upframe"/>">
<frame name="downframe" src="<tiles:getAsString name="downframe"/>" >
</frameset>
<noframes>
</noframes>
</html>
main.jsp可以写成如下的方式:
<tiles:insert page="/layout/layout.jsp">
<tiles:put name="title" value="title"/>
<tiles:put name="upframe" value="a.jsp"/>
<tiles:put name="downframe" value="b.jsp"/>
</tiles:insert>
但是实际问题是,经常是topframe经常做很少的改变,downframe则由于topframe上的操作的改变,来重新刷新页面,改变显示的值,所以实际上,很少情况是topframe和downframe都同时刷新的.而tiles设计出来的,就都是上下都刷新的,这样觉得是不是不是很好?是用tiles合适吗?