cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <h...@dvs1.informatik.tu-darmstadt.de>
Subject Re: how do I redirect in an Action?
Date Thu, 23 May 2002 17:47:19 GMT
On 23.May.2002 -- 01:15 PM, Christopher Painter-Wakefield wrote:
> if I do a redirect in an Action, does that effectively terminate the
> pipeline also?

Yes it does. I have never used the redirector object but it should do
exactly that. Using the redirector object and redirecting on sitemap
level should be equivalent.

> Also, is my understanding correct that if I create an Action that merely
> returns a new Map, this is essentially a no-action and will leave the
> pipeline unaffected?

If a map is returned, the tags nested within the action are included
in the pipeline. If no map (null) is returned, they are not
included. This obviously does not prevent you from using side effects
of your action. A database action could still modify data.

BTW it is not required to nest anything inside an action.

Hence, if nothing is nested, it doesn't matter whether your action
returns a map or not.

HTH

	Chris.

-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message