RE: [Zope] Regarding retrieving parameters in DTML.
[ Paul Naveen Raj Jeyaraj]
I am using Zope 2.5.1. I want to know whether it is possible to retrieve parameters passed through URL in DTML methods. For example, let us take this. I want to access test folder in my root directory of my Zope and want to pass a parameter to it. I am trying out the following URL for the same. http://mydomain.com/test?param=1. Is this URL > correct? If so, how to retrieve the parameter in my DTML method? Expecting an earlier response.
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=1 In the dtml document "page", you would access the parameter as 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']">
participants (1)
-
Passin, Tom