On further investigation, I'm not sure it's netscape's
issue...so ignore my finger pointing. The solution works
as described... when I add the full html head and foot to
the .vm it shows up correctly in netscape 6.
-Eric
Eric Dobbs wrote:
> I ran into this one last week. Netscape 6 appears to need a complete
> html document.
>
> When I added html, head, and body tags to my .vm files, everything
> displayed properly.
> <html>
> <head><title>foo</title></head>
> <body>
> <!-- the rest of the .vm file goes here -->
> </body>
> </html>
>
> -Eric
>
> 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]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]