问题如下:
  我现在的模板是:
<tiles:insert page="screen-layout.jsp" flush="true">
   <tiles:put name="header" value="1.jsp"/>
   <tiles:put name="topbar" value="2.jsp"/>
   <tiles:put name="body" value="main.jsp"/>
</tiles:insert>
然后screen-layout.jsp如下:
<table border="0" cellspacing="0" cellpadding="0" width="990">
<tiles:insert attribute="header" />
<tiles:insert attribute="topbar" />
<tiles:insert attribute="body" />
</table>
1在最页面上边,2在页面左边,main在中间
我现在导航在2上面,2上点一下之后,想让新出来的页面(比如main2.jsp)在body的位置(1和2不变)
(就象frameset那个一样,frame里面<frame src="" name="main">,然后在别的框架中的link中target=main就能把页面加载到main的地方)
我就是想问,在tiles中,这个功能是怎么实现的??

解决方案 »

  1.   

    lz的问题和我以前遇到的一样,很不幸告诉你,不可能实现的因为frameset是客户端标签,想做都区域刷新只有ajax和frameset
      

  2.   

    你还是用iframe把整个页面分框架来做吧,titles并不是说不能实现,就是你要把titles的那些参数都要从新设定,才能达到效果,相当麻烦的事情。
      

  3.   

    tiles其实是把一个jsp分成一块一块的,然后再想办法重用的一种模板技术。
    注意这个“把一个jsp分块”的概念,
    用它生成的最终jsp实际上和一个整个的jsp没什么两样,
    只不过分开后方便重用罢了。所以楼主要的结果和tiles能做的有些差距,
    建议楼主还是用ajax或iframe或frameset吧good luck