cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beyaRecords <...@beyarecords.com>
Subject Re: AW: AW: Infantile Download page question...
Date Sat, 15 Jan 2005 16:55:28 GMT

On 15 Jan 2005, at 12:16, Alexander Zirl wrote:

> So how did you accomplish the task in the end. Via the zip method?

Hi Alexander,
yes I used the Zip method which was very easy to implement.

I call a jx file from my flowscript which wraps up all the tracks 
associated with an Order.

<zip:archive
xmlns:zip="http://apache.org/cocoon/zip-archive/1.0"
xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"
 >
	<zip:entry name="legalnote.txt" src="legalnote.txt"/>
   	<jx:forEach var="orderitem" items="${order.getOrderItems()}">
   		<zip:entry name="${orderitem.getStock().getItemFinal()}.mp3" 
src="${orderitem.getStock().getItemFinal()}.mp3"/>
   	</jx:forEach>
   	
</zip:archive>


Very nice ;-)
Mime
View raw message