[Seaside] mime type
obi068 at gmail.com
Thu Jun 26 12:09:20 UTC 2008
To return a csv file which is opened by excel we are using the following
It should be implemented in WASession or in a subclass.
respondContent: aContentString ofMimeType: aTypeString fileName: aName
"Return a response with given string as content that is of passed mime
self returnResponse: (WAResponse document: aContentString mimeType:
aTypeString fileName: aName)
On Thu, Jun 26, 2008 at 1:56 PM, Diogenes Moreira <
diogenes.moreira at gmail.com> wrote:
> yes, but how obtein my WAReponse Instance,
> sorry i'm newby.
> On Thu, Jun 26, 2008 at 2:05 AM, Philippe Marschall <
> philippe.marschall at gmail.com> wrote:
>> 2008/6/26 Diogenes Moreira <diogenes.moreira at gmail.com>:
>> > Hi my folk,
>> > I need set the http header of a component.
>> > in another lenguage i can set liki this
>> > Response.AddHeadder ("content-type", "application/xls")
>> > But im don't how set this property in the commanche response.
>> You don't mess around with Comanche. You send #contentType:
>> 'application/xls' to your instance of WAResponse.
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
> seaside mailing list
> seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside