decorator « Filter « JSP-Servlet Q&A

1. Is it possible to define a decorator directly in a JSP with Sitemesh?

I know I should define decorators in a configuration file or my own subclass of ConfigurableSiteMeshFilter. For example:

public class SitemeshFilter extends ConfigurableSiteMeshFilter {

    protected ...

2. Is Sitemesh 2.4 release broken?

We've recently upgraded one of our projects. This involves new versions of JARs also. Sitemesh was one of them. We updated from 2.2.1 to 2.4.2. Things stopped working. We had a ...