cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Oliver <res1c...@verizon.net>
Subject Re: Flowscript and return to pipeline
Date Thu, 26 Feb 2004 01:04:20 GMT
Stephan Coboos wrote:

> Hello,
>
> in some discussions I'd heard that actions and XSP should be more and 
> more replaced by flowscript. I think, this is a good idea because 
> flowscript is a good way to integrate logic parts into an application. 
> But with one thing I cant agree. Why shouldn't it be possible to 
> return to the sitemap without sendPage? I had read some discussions 
> about the decision, throwing a Exception if no sendPage existst within 
> a flowscript but I think this decision was wrong.
>
> In our current project we have to create some Beans from a Database. 
> After that, this beans should be integrated into the actual pipeline, 
> but this is not possible because a return after the flowscript is not 
> possible so we have to use Actions instead brrrr....
>
Why do you have to use actions?

> This is not possible but would be very very nice:
>
> <map:match pattern="listProducts">
>   <map:generate type="file" src="products.xml"/>
>   <map:call function="readProductBeans"/>
>   <map:transform type="jxt"/>
>   <map:transform type="xslt"/>
>   <map:serialize/>
> </map:match>


Um, how much harder is this:

<map:match pattern="listProducts">
  <map:generate type="file" src="products.xml"/>
  <map:call function="readProductBeans"/>
</map:match>

<map:match pattern="listProducts-result-pipeline">
  <map:generate type="jxt"/>
  <map:transform type="xslt"/>
  <map:serialize/>
</map:match>


Mime
View raw message