3
請幫助澄清:的sitemesh VS JSP的配置(<包括-前奏>)
在web.xml我有以下
<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<el-ignored>false</el-ignored>
<page-encoding>utf-8</page-encoding>
<include-prelude>/jstlTaglibs.jspf</include-prelude>
</jsp-property-group>
</jsp-config>
在decorators.xml
另外我有
<decorator name="footer" page="footer.jsp">
<pattern>*.action</pattern>
</decorator>
它通過sitemesh.xml使用。其中說footer.jsp
...
<decorator:body />
<@include .. "footer.jsp"/>
所以我收集的是,上述兩個代碼在某種意義上注入了一些jspf。請幫助強調這兩種方法的差異和好處。哪一個更多用於整個行業?