[Seaside] Using URL Parameters
Lukas Renggli
renggli at gmail.com
Sun Nov 22 09:54:02 UTC 2009
> 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
Subclassing WAApplication is discouraged and normally not necessary
(Seaside 2.6 and earlier required that). Simply override
#initialRequest: in your root component.
Have a look at WABrowser and the other components that override
#initialRequest: and #updateRoot: to see some examples. This works
exactly the same in Seaside 2.8 and 3.0.
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
More information about the seaside
mailing list