[ZPT] redirection in a zpt
dieter at handshake.de
Fri Jul 8 14:14:20 EDT 2005
Kenneth Gonsalves wrote at 2005-7-8 18:16 +0530:
>in a zpt, i use tal:condition to check something. If it is true, the
>browser should redirect to another template. How do it do this?
<tal:redirect define="dummy request.RESPONSE.redirect(new_absolute_location)" />
Note, however, that (this form of) redirect takes effect only at the end of
the request. You must take care, that further request
processing does not do bad things...
More information about the ZPT