Re: Content-Type not setting in v2.2.1

Nicolas Averseng <[email protected]> Wed, 28 Sep 2005 16:29:21 +0200
Newsgroups gmane.comp.web.sitemesh.general,gmane.comp.lang.pnuts.user
Message-ID <[email protected]>
Actually, if the problem is the one you describe here, there might be
another workaround described in
http://jira.opensymphony.com/browse/SIM-146

I believe this is fixed in CVS in the 2.3 branch, but you can also
apply the fix by yourself on the 2.2.1 sources.

Nicolas.

On 9/27/05, Torgeir Veimo <[email protected]> wrote:
> On Tue, 2005-09-27 at 14:00 -0500, Geoff wrote:
> > I recently upgraded my dev system from Sitemesh2.0 to 2.2.1.
> > Some pages in my application have the option to render them as an Excel=
l spreadsheet.
> > When I upgraded to 2.2.1, this stopped working, however when I reverted=
 back to 2.0 it started working again. After stepping through the debugger,=
 it seems that PageResponseWrapper.setContentType() has no effect on the se=
rvlet response content type.
> >
> > Does anyone know why this? Is there a workaround?
>
> Are you using struts? The struts action servlet initially sets the
> response type to text/html. The problem with sitemesh 2.2.1 is that
> subsequent setting the content, eg later in an action to something else,
> doesn't take effect.
>
> The workaround at the moment is to put the url in the excludes section.
>
> --
> Torgeir Veimo <[email protected]>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]