The most appropriate place to would be in the template. The RunData object and
therefore
the response object are available from the Context. Though you are right it is
probably
nice, if the majority of your templates output html, to set a default.
Oskar ?wida wrote:
>
> Hi,
>
> I have a small problem: when I'm using VelocityOnlyLayout for my default
> layout
> MSIE - displays everything OK, but Netscape shows my html template
> in plain text .
>
> I've looked at VelocityOnlyLayout and found that there is
> no code setting Content-Type header for servlet response.
> When I've writen my own Layout identical to VelocityOnlyLayout
> adding
> data.getResponse().setContextType(...)
> everything works.
>
> Could it be a bug ?
>
> As I can see - within Turbine servlet call to:
> data.getResponse().setContextType()
> is performed only when some page is set and nothing was written to the output.
>
> Regards
> Oskar
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]