网站的头要动态输出,每个页面都一样,都是用struts查询后返回输出的.如果栏目多了,每个struts 里的方法就要重复的写头部的查询,怎么把他做成组件啊
我现在专门建了一个struts输出,并用<iframe>显示,<iframe frameborder="0" name="footer" scrolling="no"
src="../inc/showsplit.do?method=showtop" width="100%" height="358px">
</iframe>但iframe 不好,用
<jsp:include flush="true" page="../inc/showsplit.do?method=showfooter" />
就报
java.lang.IllegalStateException: 回话已执行,不能forward
想请教有没有其它的好方法
我现在专门建了一个struts输出,并用<iframe>显示,<iframe frameborder="0" name="footer" scrolling="no"
src="../inc/showsplit.do?method=showtop" width="100%" height="358px">
</iframe>但iframe 不好,用
<jsp:include flush="true" page="../inc/showsplit.do?method=showfooter" />
就报
java.lang.IllegalStateException: 回话已执行,不能forward
想请教有没有其它的好方法
不就可以了
<jsp:param name="method" value="showfooter"/>
</jsp:include>
在线电影,无需注册
page="../inc/showsplit.do?method=showfooter" />
是实现调用struts的方法showfooter,showfooter的方法返回的值到指定的页面.