[Seaside] Using URL Parameters
nigol at nigol.cz
Sun Nov 22 09:32:49 UTC 2009
to extract parameters from URL, you have to make your own
WAApplication subclass, where override 'handleRequest: aRequest'.
Something like this:
| 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:
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:
> 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,
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the seaside