[Zope] RESPONSE.redirect - dynamic names?

Pavlos Christoforou pavlos@gaaros.com
Thu, 27 Apr 2000 13:03:35 -0400 (EDT)


On Thu, 27 Apr 2000, Geoff Gardiner wrote:

> Is there some reason why the insertion of a variable into a redirect might
> not work? Thus:
> 
> <dtml-let param="'sometext'">  -- sets param
> <dtml-var param>               -- prints param as 'sometext'
> <dtml-call "RESPONSE.redirect('processform?withparam=<dtml-var param>')">
>     -- sends the string 'withparam=' across, missing the param value
> 
> The characters making up 'sometext' are valid HTML characters.

DTML tags cannot be used inside DTML tags. Something like this <untested>
should work:

<dtml-call "RESPONSE.redirect('processform?withparam='+param)">

Pavlos