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 07:43:36 GMT
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.

$data.setContentType( "application/vnd.ms-excel" )

----- Original Message -----
From: "Wei Ru" <Wei.Ru@botcc.com>
To: <turbine-user@jakarta.apache.org>
Sent: Monday, October 22, 2001 3:03 PM
Subject: data.setContentType


Sorry for the previous email, I posted it under wrong thread.


If i want to redirect to an URL from an Action -> doPerform() method
to
open an xls file, how can I do this?

I tried to use data.setContentType("application/vnd.ms-excel"), it
does
not seem to work, is it because the code is in Action so it won't
work?
what is wrong with my code?

Thanks

Wei Ru

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


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



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail:
turbine-user-help@jakarta.apache.orgGet 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