[Seaside] Using URL Parameters

Martin Polák nigol at nigol.cz
Sun Nov 22 09:32:49 UTC 2009

Hi Ole,
	to extract parameters from URL, you have to make your own  
WAApplication subclass, where override 'handleRequest: aRequest'.  
Something like this:

		handleRequest: aRequest
			| blogdate |
			blogdate := aRequest at: 'blogdate'.
			^ super handleRequest: aRequest

	If you want to add parameters to URL, you should override 'updateUrl:  
anUrl' in your component. So it could looks like:

		updateUrl: anUrl
			super updateUrl: anUrl.
			aUrl addToPath: 'my-great-parameter'.

	This works in Seaside 2.8. It can be different in Seaside 3.0.


On 22.11.2009, at 8:30, Ole Voß wrote:

> Hello everybody,
> I maintain a small blog that I manage using a Perl-Program I wrote.
> I've been learning smalltalk for a (short) while and decided it  
> would be a neat idea to put what I've learnt about seaside to good  
> use. So I wrote a little program that would accept user comments and  
> display them on the blog. Unfortunately I've been unsuccessful to  
> finding out something about URL parameters and how to use them. What  
> I would like to do is something like this:
> http://localhost:8080/seaside/comment?blogdate=20091122&_s=TbwWTAII8zTnnVL3&_k=QgJ6CzsF
> Also, I might want to add a URL parameter myself when actually  
> posting the form. How does one do that? Is there any online  
> literature available on this topic? Google wasn't being friendly ;-)
> Best regards,
> Ole._______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

More information about the seaside mailing list