commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <robertburrelldon...@blueyonder.co.uk>
Subject Re: [digester] xmlrules
Date Sat, 15 Mar 2003 18:43:01 GMT
hi gordon

if you're still around, you might like to know that i've committed an 
enhancement which (hopeful) does what you requested.

- robert

On Friday, February 28, 2003, at 12:16 AM, Gordon wrote:

> If I have the following xmlrules and the createObject of DAOFactory
> throws an exception, can I have digester continue processing the next
> "dao" pattern? Currently it throws the exception and stops processing
> the rest of the file.
>
> <pattern value="dao">
>   <set-properties-rule>
>     <alias attr-name="name" prop-name="DAOName" />
>   </set-properties-rule>
>   <factory-create-rule classname="org.soa4j.dao.manager.DAOFactory"/>
>   <set-next-rule methodname="addDAO" paramtype="java.lang.Object" />
>   <set-properties-rule/>
>   <pattern value="attributes">
>     <set-properties-rule>
>       <alias attr-name="name" prop-name="groupName" />
>     </set-properties-rule>
>     <pattern value="attribute">
>       <call-method-rule methodname="setAttribute" paramcount="2" />
>       <call-param-rule attrname="name" paramnumber="0" />
>       <call-param-rule attrname="value" paramnumber="1" />
>     </pattern>
>   </pattern>
> </pattern>
>
>
> Gordon
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>


Mime
View raw message