turbine-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Crossen" <ccros...@home.com>
Subject Re: data.setContentType
Date Tue, 23 Oct 2001 19:55:04 GMT
It works for us with 2.1 which is what we are using. We are building a
production system and so are avoiding 3.x for the moment.

----- Original Message -----
From: "joe black" <chinajoeblack@hotmail.com>
To: "Turbine User" <turbine-user@jakarta.apache.org>
Sent: Tuesday, October 23, 2001 1:59 AM
Subject: Re: data.setContentType


I've tried in 3.0a4 and 3.0a2 to generate a JPEG

$data.setContentType(...)
$data. .... in vm
failed

data.setContentType(...);
data.setRedirectURI(...);
data.setStatusCode(..);... in doBuildTemplate
work in 2.1 but failed in 3.0aX

data.getResponse().setContentType(...);
data.getResponse().sendRedirect(...);... in doBuildTemplate
OK

----- Original Message -----
From: Chris Crossen
Sent: 2001年10月23日 15:43
To: turbine-user@jakarta.apache.org
Subject: Re: data.setContentType

Why don't you try it and then tell us if it doesn't work :)

----- Original Message -----
From: "joe black" <chinajoeblack@hotmail.com>
To: "Turbine User" <turbine-user@jakarta.apache.org>
Sent: Monday, October 22, 2001 11:05 PM
Subject: Re: data.setContentType


data.getResponse().setContentType("...");
data.getResponse().sendRedirect("...");
....


I don't think '$data.setContentType( "application/vnd.ms-excel" )'
could work because when the template is rendered, the response stream
is being sent, any redirecting and changing content-type are too late
----- Original Message -----
From: Chris Crossen
Sent: 2001年10月23日 6:27
To: turbine-user@jakarta.apache.org
Subject: Re: data.setContentType

Try putting this in your template.Get more from the Web.  FREE MSN
Explorer download : http://explorer.msn.com



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Mime
View raw message