sitemesh vs jsp-config (<include-prelude>)
- by Nrj
Please help clarifying :
In web.xml I have the following
<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 via sitemesh.xml. The footer.jsp which says
...
<decorator:body />
<@include .. "footer.jsp"/>
So what I gather is, both of the codes above in a sense inject some jspf. Please help highlighting the differences and benefits of both the approaches. Also which one is more used across industry ?