struts2 
jsp 页面中 <tiles:insertTemplate template="/top.action" flush="true" /><tiles:insertTemplate template="/footer.action" flush="true" />重复调用2次top.action 哪位遇见过类似问题编译后看源代码 前后都是 top.action 的html代码 footer.action 不见了 请大家看下~~ 谢谢。

解决方案 »

  1.   

    在freeMarker 中配置如下:
      
     <!-- 配置匹配所有请求的Action -->
            <action name="*">
                <result type="freeer">/WEB-INF/ftl/{1}.ftl</result>
            </action>
    页面采用<tiles:insertTemplate template="/top.action" flush="true" /> 请求top.action 我一共写了两个
    <tiles:insertTemplate template="/top.action" flush="true" />
    <tiles:insertTemplate template="/footer.action" flush="true" />但是编译后 显示的全是top.action 的 footer.action 没有了。
      

  2.   

    哎~!失败。可能问题太简单 居然悬赏100都没人来。最后这个问题还是没有解决 采用iframe 做了