You can define multiple datasources in struts-config.xml by having mulitple 
"datasource" elements inside the "datasources" element.  You need to give 
each datasource a unique name (or key) so that you can retrieve them from 
the ServletContext to use them.  See the struts dtd for the syntax of the 
datasource element.

Dave


>From: "Kalaiselvan" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: About Datasource
>Date: Mon, 30 Sep 2002 14:48:18 +0530
>
>Hii All,
>
>         Any one know how to get multiple Datasource from Struts.
>Because i think in Struts-config.xml, we are able to specify only one
>Datasource.
>
>         Also I got an error when I configure my datasources in tomcat's
>sever.xml <context ></context> I couldnt able to get that datasource name 
>in
>my Strtus's application.But my ordinary application can able to ge the
>Datasources from server.xml. Why this is happend???
>
>Thanx in Advance
>
>Kalaiselvna.S
>




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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

Reply via email to