struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "julio" <>
Subject RES: DataSource in Struts 1.1 beta2
Date Fri, 20 Sep 2002 13:05:18 GMT
Hi Miguel,

This question was already answered: look for the subject "datasource
retrieval" (6/09/2002).

Then, in your action, you can access your datasource via:
DataSource ds = this.getDataSource(request);

Julio Cesar
SOFTSITE Tecnologia 
Fortaleza, CE, Brasil

-----Mensagem original-----
De: Miguel Angel Medina Lopez [] 
Enviada em: sexta-feira, 20 de setembro de 2002 06:37
Para: Struts Users Mailing List
Assunto: DataSource in Struts 1.1 beta2

Hi all:

I want to use the connection pool from Struts, then I declare a
in the config-struts.xml. Following the user guide instruction I use de
servlet.getDataSource(null) method to recover it, but it's deprecated
using struts 1.1 beta2). I have read in a message from the list that in
version I must use  the method getDataSource from the Action class, but
doesn't exists in this class.

Someone Can tell me how can I recover the datasource?

The getDataSource in the Action class appear in the javadoc from the
build, so Must I use the nightly built of Struts, and it's a stable

Thank you

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message