Re: Content-Type not setting in v2.2.1

Torgeir Veimo <[email protected]> Wed, 28 Sep 2005 06:39:54 +1000
Newsgroups gmane.comp.web.sitemesh.general,gmane.comp.lang.pnuts.user
Message-ID <1127853595.18094.3.camel@Vigor11>
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 Excell 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 servlet 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]