[Zope] Regarding retrieving parameters in DTML.
Passin, Tom
tpassin@mitretek.org
Tue, 1 Oct 2002 09:28:06 -0400
[ Paul Naveen Raj Jeyaraj]
> I am using Zope 2.5.1. I want to know whether it is possible=20
> to retrieve parameters passed through URL in DTML methods.=20
> For example, let us take this. I want to access test folder=20
> in my root directory of my Zope and want to pass a parameter=20
> to it. I am trying out the following URL for the same.=20
> http://mydomain.com/test?param=3D1. Is this URL > correct? If so,=20
> how to retrieve the parameter in my DTML method? Expecting an=20
> earlier response.
>=20
You probably want a page to receive the parameter, not a folder the way
you have shown. If there is a dtml document called "page1" in your
"test" directory, then an HTTP request to the page might be
http://mydomain.com/test/page1?param=3D1
In the dtml document "page", you would access the parameter as=20
REQUEST['param']
For example,
<dtml-var "REQUEST['param']">
There are variations that also work. For example:
<dtml-var "param">
<dtml-var "REQUEST.param">
<dtml-var "REQUEST.form['param']">