我用了sitemesh,在装饰页main.jsp里 我想把内容显示在iframe里 而不只是直接使用<decorator:body/>来获取正文。但是用iframe后 左边的链接点击后 内容根本就不会显示在iframe里。
[color=red]您的位置>>><decorator:title></decorator:title>
<IFRAME name="menunr" marginWidth=0 marginHeight=0 src="" frameBorder=1 width=100% height=100% scrolling=off framespacing=0></IFRAME>[/color]
上面是我现在的代码
之前的代码如下:
[color=red]您的位置>>><decorator:title></decorator:title><decorator:body>[/color]
请问各位大虾 应该才能怎样把内容显示在iframe里。希望我表述得够明白。
[color=red]您的位置>>><decorator:title></decorator:title>
<IFRAME name="menunr" marginWidth=0 marginHeight=0 src="" frameBorder=1 width=100% height=100% scrolling=off framespacing=0></IFRAME>[/color]
上面是我现在的代码
之前的代码如下:
[color=red]您的位置>>><decorator:title></decorator:title><decorator:body>[/color]
请问各位大虾 应该才能怎样把内容显示在iframe里。希望我表述得够明白。
Sitemesh与iframe集成
本文探讨了在使用Sitemesh装饰器框架时如何将内容正确地显示在iframe内,而不是直接显示。作者遇到了左侧链接点击后内容无法在iframe中显示的问题,并寻求解决方案。
149

被折叠的 条评论
为什么被折叠?



