You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Craig Tataryn <cr...@hotmail.com> on 2002/09/05 18:30:39 UTC
Datasource Retrieval in 1.1
The documentation still lists the old way of how to retrieve a datasource
which has been setup in struts-config.xml using findDatasource();
The API says to "use datasource stored in attributes". Can someone give an
example of how I might do this from within my execute method? I want to get
rid of my deprecation warnings for findDatasource()
As well, I believe you can have multiple datasources setup in
struts-config.xml. The default datasource being keyed by
org.apache.struts.action.Action.DATA_SOURCE_KEY. Could someone point me to
an example of multiple datasources and how to setup keys for each?
Thanks,
Craig.
Craig W. Tataryn
Programmer/Analyst
Compuware
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>