Hi, I have followed this thread with interest
and noted what Chris wrote.
"Edgar, AFAIK this is not true. <map:act> can contain all other tags
that are allowed within a pipeline. "
However, what about nested map:act tags.
eg.
<map:match pattern="form/validation/*">
<map:act type="form-validator"/>
<map:parameter name="descriptor" value="descriptor.xml"/>
<map:parameter name="validate-set" value="{1}"/>
<!-- form validation OK -->
<map:act type="db-saveform"/>
<map:parameter name="table" value="formtest"/>
<!-- form validation OK -->
<!-- form saved in db OK -->
<map:generator yyyyyyyyyyyyyy/>
<map:serialize xxxxxxxxxxxxxx/>
</map:act>
<!-- form saved in db ERROR -->
<map:generator zzzzzzzzzzzzz/>
<map:serialize vvvvvvvvvvvvv/>
</map:act>
<!-- form validation Error -->
<map:generator wwwwwwwwwwwwww/>
<map:serialize qqqqqqqqqqqqqq/>
</map:match>
I have tried to get this working but without any luck.
What is the correct way of doing this ?
Peter Lerche
On Thu, 2002-05-23 at 18:08, Christian Haul wrote:
> On 23.May.2002 -- 05:00 PM, Graaf, Edgar de (fin) wrote:
> > Christopher,
> >
> > <map:act...> can't contain matchers, how else would cocoon know that the
> > action should be run?
>
> Edgar, AFAIK this is not true. <map:act> can contain all other tags
> that are allowed within a pipeline.
>
> Depending on the amount of "pipeline fragments" protected by the
> action it would be worthwhile to use a subsitemap, though.
>
> Another misconception in this thread seems to be that the tags after
> the action will always be processed. That is only true if it was
> determined that they are part of the actual pipeline.
>
> The whole process is made in two steps:
> 1) determine what the pipeline actually contains by evaluating
> actions, matchers, selectors, call and redirect tags. A pipeline is
> terminated when a serializer is found. For the sake of brevity I
> consider a reader here to be a (generator + serializer).
>
> 2) Use the components (readers, generators, transformers, serializers)
> determined in step 1. Note that in this step no actions, matchers, or
> selectors are used.
>
> IOW if a serializer is nested inside a map:act tag, it effectively
> terminates the pipeline and tags beneath the map:act will not be
> considered.
>
> It works just like it was mentioned with redirects or calls.
>
> HTH
>
> Chris.
>
> --
> C h r i s t i a n H a u l
> [EMAIL PROTECTED]
> 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>