Access to the request GET fields in a WATask

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Access to the request GET fields in a WATask

Sébastien Rocca-Serra
Hi,

I have to respond to this kind of URL:
http://some.server.com/seaside/myapp?login=foo&key=1234

I created MyTask, a subclass of WATask and chose it as root component
for 'seaside/myapp'.

My problem is that I can't access to the initial request fields (login &
key).

Note: self session currentRequest fields contains the usual _k and _s
fields, but not my initial fields.

Any suggestions?

Thanks,
Sebastien.

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Access to the request GET fields in a WATask

Philippe Marschall
2006/10/27, Sébastien Rocca-Serra <[hidden email]>:

> Hi,
>
> I have to respond to this kind of URL:
> http://some.server.com/seaside/myapp?login=foo&key=1234
>
> I created MyTask, a subclass of WATask and chose it as root component
> for 'seaside/myapp'.
>
> My problem is that I can't access to the initial request fields (login &
> key).
>
> Note: self session currentRequest fields contains the usual _k and _s
> fields, but not my initial fields.
>
> Any suggestions?
Override #initialRequest:
In the request passed as an argument you will find the fields.

Philippe

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Access to the request GET fields in a WATask

Sébastien Rocca-Serra
Thanks ! That's exactly what I needed.
Sebastien.

Philippe Marschall a écrit :

> 2006/10/27, Sébastien Rocca-Serra <[hidden email]>:
>> Hi,
>>
>> I have to respond to this kind of URL:
>> http://some.server.com/seaside/myapp?login=foo&key=1234
>>
>> I created MyTask, a subclass of WATask and chose it as root component
>> for 'seaside/myapp'.
>>
>> My problem is that I can't access to the initial request fields (login &
>> key).
>>
>> Note: self session currentRequest fields contains the usual _k and _s
>> fields, but not my initial fields.
>>
>> Any suggestions?
>
> Override #initialRequest:
> In the request passed as an argument you will find the fields.
>
> Philippe

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside