问题如下:
我现在的模板是:
<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中,这个功能是怎么实现的??
我现在的模板是:
<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中,这个功能是怎么实现的??
解决方案 »
- Tomcat的程序(poi3.7导入excel)到Websphere下报错
- 求助servlet怎么使用apache的xmlrpc
- 为什么web容器(Tomcat)提供的对象不能实例化
- Java 如何获取网管地址,和网段
- 用SH框架做项目怎么和ajax结合?
- Javamail支持https吗?
- 博客中读取模板的原理是什么呢?
- 有没有近期比较新的面试题?
- 如何从Struts的FormFile上传文件取得上传文件的全路径还有如何把这个转换为FileInputStream类型
- 请高手赐教!用poi包向Excel里写数据时遇到中文出现乱码。
- 关于ActionMessage的初始化
- 求助关于junit测试类的问题
注意这个“把一个jsp分块”的概念,
用它生成的最终jsp实际上和一个整个的jsp没什么两样,
只不过分开后方便重用罢了。所以楼主要的结果和tiles能做的有些差距,
建议楼主还是用ajax或iframe或frameset吧good luck