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: howto make use of default database add, delete, update action for mutilple table at a time
Date Tue, 26 Feb 2002 08:48:49 GMT
On 26.Feb.2002 -- 02:31 PM, marco wrote:
> I don't know exactly how to invoke action mutiple times with serveral
> descriptor files.
> 
> Would you please demonstrate it?

out of my head (check syntax!):

	<map:match ......>
	    <map:act name="db-upd">
	       <map:parameter name="descriptor" value="one.xml"/>
	    </map:act>
	    <map:act name="db-upd">
	       <map:parameter name="descriptor" value="two.xml"/>
	    </map:act>
	    <map:generate ..../>
	    <....>
        </map:match>

or have the same action available under two names:

	<map:actions>
	   <map:action name="upd1" class="org.apache....DatabaseUpdateAction">
	      <descriptor>one.xml</descriptor>
           </map:action>
	   <map:action name="upd2" class="org.apache....DatabaseUpdateAction">
	      <descriptor>two.xml</descriptor>
           </map:action>
        </map:actions>


	<map:match ......>
	    <map:act name="upd1"/>
	    <map:act name="upd2"/>
	    <map:generate ..../>
	    <....>
        </map:match>

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