Do not use <set property> tag. Assign each value directly (e.g. key="ds1")

Mark.
-----Original Message-----
From: Adam Hardy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 3:19 PM
To: Struts Users Mailing List
Subject: Re: Multiple Data Sources


Hi Regis,
I can't help but I'm curious about what you are doing with data-source 
tags in struts-config. What class is findDataSource on and what does 
this call return?


Adam

Régis Melo wrote:

>Hi everybody, How can I set two datasources in the struts.config.xml and
>tell the datasource that i want do load dinamically? I´ve tried with the
>findDataSource("NameKeyDataSource") but its not working. I´m setting in
>the struts-config.xml. It goes like this:
>
>       <data-source>
>       <set-property property="key"   value="ds1"/>
>       <set-property property="autoCommit"  value=".....>
>       </data-source>
>
>       <data-source>
>       <set-property property="key"   value="ds2"/>
>       <set-property property="autoCommit"  value=".....>
>       </data-source>
>
>... And my code is:
>
>       findDataSource("ds1")
>
>T.I.A,
>
>____________________________
>Régis Melo
>[EMAIL PROTECTED]
>+55(85)9111-8301
>
>SoftSite Tecnologia
>http://www.softsite.com.br
>+55(85)261-5266
>____________________________
>
>
>--
>To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
>  
>



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the designated 
recipient(s) named above.  If you are not the intended recipient of this message you 
are hereby notified that any review, dissemination, distribution or copying of this 
message is strictly prohibited.  This communication is for information purposes only 
and should not be regarded as an offer to sell or as a solicitation of an offer to buy 
any financial product, an official confirmation of any transaction, or as an official 
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be secure or 
error-free.  Therefore, we do not represent that this information is complete or 
accurate and it should not be relied upon as such.  All information is subject to 
change without notice.



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to