cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leo leonid <...@leonid.de>
Subject Re: Allowing redirects in handle-errors
Date Thu, 22 Apr 2004 04:30:04 GMT

On 20.04.2004, at 18:28, peter royal wrote:

> On Apr 20, 2004, at 12:22 PM, Tony Collen wrote:
>>> If a URL with an invalid continuation ID is invoked, I would like to 
>>> take the user to the start of the process rather than displaying an 
>>> error page. AFAIK, this needs a redirect-to in the handle-errors 
>>> block. I can think of several ways of working around this block, but 
>>> I was curious as to what others do in this situation, and if might 
>>> warrant a revote on the change :)
>>> -pete
>>
>> Hmm. Could generate a page that has a "manual" redirect, e.g.:
>>
>> <meta http-equiv="refresh" content="0;url:http://foo"/> ?
>
> yea, that's one of the ways of working around it, but seems hacky :)
>
> i could also create a custom Action since that gets a handle to a 
> Redirector.
> -pete
>


and what about calling a function

    <map:when test="invalid-continuation">
        <map:call function="restart">
            ...
	   </map:call>
    </map:when>

or a saved continuation ?

/leo


Mime
View raw message