Sitemesh vs jsp-config (<include-prelude>)
Please help clarify:
In web.xml I have
<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>
Also in decorators.xml I have
<decorator name="footer" page="footer.jsp">
<pattern>*.action</pattern>
</decorator>
which is used through the sitemesh.xml file. Footer.jsp which says
...
<decorator:body />
<@include .. "footer.jsp"/>
So, what I collect, both of the above codes in some sense inject some jspf. Please help highlight the differences and benefits of both approaches. And which one is more used in industry?
+3