[Seaside] Re: handleRequest: and Seaside 3

Martin Polák nigol at nigol.cz
Mon Sep 27 21:01:35 UTC 2010


Of course, here is the complete method:

	handleFiltered: aRequestContext
	aRequestContext request uri path last = 'tip.csv'
		ifTrue: [
			aRequestContext
				respond: [ :response |
					response
						contentType: WAMimeType textPlain;
						nextPutAll: self tipCsv asString ] ].
	super handleFiltered: aRequestContext

I have it as instance method of my custom application class, which  
overrides default WAApplication. self tipCsv generates the CSV file,  
which is returned in response.

Martin


On 25.9.2010, at 2:58, fritz schenk wrote:

> Could you share the full solution? I would appreciate seeing it and  
> stepping
> through it to learn.
> Thanks
>
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the seaside mailing list