[Seaside] mime type
Gerhard Obermann
obi068 at gmail.com
Thu Jun 26 12:09:20 UTC 2008
Hi!
To return a csv file which is opened by excel we are using the following
code.
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
type"
self returnResponse: (WAResponse document: aContentString mimeType:
aTypeString fileName: aName)
br
Gerhard
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.
>
> Thanks...
>
>
> 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.
>>
>> Cheers
>> Philippe
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20080626/3784d533/attachment.htm
More information about the seaside
mailing list