Hi,
Problem Resolved. Apply the decorator to all the pages by using:
<mapping path="/*" exclude="false" decorator="/decorator.jsp"/>
And to exculde a particular page from being decorated by the
decorator, add <%@ page contentType="application/json" %> to the page.
(I have used contentType="applicaion/json" because I need it. You can
put others as well but not "text/html")
This is because By default, SiteMesh will only intercept responses
that set the Content-Type HTTP header to text/html.
Please refer the following site,
http://www.sitemesh.org/configuration.html and see for this section:
Advanced Configuration:
For most users, the decorator mappings above should be enough. But if
you want more options...
MIME Types
By default, SiteMesh will only intercept responses that set the
Content-Type HTTP header to text/html.
This can be altered to allow SiteMesh to intercept responses for other
types. This is only applicable for the SiteMesh Filter - it is ignored
by the offline site builder.
Thanks!!
On Jul 7, 5:00 pm, max max <
stani...@yahoo.fr> wrote:
> same problem :) for one month :/
>
> --- En date de : Jeu 7.7.11, Shaunak Khedkar <
shaunakkhed...@gmail.com> a écrit :