sitemesh vs jsp-config (<include-prelude>)

Posted by Nrj on Stack Overflow See other posts from Stack Overflow or by Nrj
Published on 2009-11-24T15:01:02Z Indexed on 2010/05/17 0:30 UTC
Read the original article Hit count: 636

Filed under:
|

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 ?

© Stack Overflow or respective owner

Related posts about jsp

Related posts about sitemesh