cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Ratcliffe" <a...@prema.co.nz>
Subject RE: Redirect within <handle-errors> block
Date Fri, 15 Apr 2005 00:11:58 GMT
Hi Ralph

Thanks for the link, I can appreciate the reasoning behind disallowing
redirection in this context. Looks like my first contribution to the
documentation effort should be to re-write this page:
http://cocoon.apache.org/2.1/userdocs/concepts/errorhandling.html

The particular use-case I have in mind is handling invalid-continuation errors.
If a referenced continuation is no longer valid what I would like to do is
present the user with the application home page. I can of course use a generator
to achieve the same outcome.

Cheers
Adam

> -----Original Message-----
> From: Ralph Goers [mailto:Ralph.Goers@dslextreme.com]
> Sent: Friday, 15 April 2005 10:49 a.m.
> To: users@cocoon.apache.org
> Subject: Re: Redirect within <handle-errors> block
>
>
> FWIW
>
> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=105231353428562&w=2
>
> Ralph
>
> Adam Ratcliffe wrote:
>
> >Hi
> >
> >I'd like to redirect from within an error handler for certain types of
> >exception. The cocoon user docs illustrate this example using a
> redirect action:
> >
> >    <map:handle-errors>
> >      <map:select type="exception">
> >        <map:when test="connection">
> >          <map:act type="redirect" src="cocoon:/error"/>
> >        </map:when>
> >      </map:select>
> >    </map:handle-errors>
> >
> >From what I can see this action isn't included with recent cocoon
> releases and
> >the sitemap redirector isn't allowed in this context.
> >
> >Can anyone tell me how to redirect in an error handler?
> >
> >Cheers
> >Adam
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message