Re: Access to a database with a configuration file

2004-12-04 Thread Philippe PONSONNET
Hi Ichy. Thanks a lot for your answer !! You have resolved my problem. I had put a lot of different path in the getResource() method but not the one which takes a slash at the begining of the path :-/ Now all is ok and I don't need any O/R framework. Mille mercis. Philippe --- ichy <[EMAIL

Re: Access to a database with a configuration file

2004-12-04 Thread Philippe PONSONNET
ng iBatis Sturts jPetStore on DAO or > Rick Reumans Struts > How to DAO tutorial. > (DAO = Data Base Access) > .V > > Philippe PONSONNET wrote: > > This solution seems to be not possible because my > > Database class is not a Servlet but a classic > class. > >

Re: Access to a database with a configuration file

2004-12-04 Thread Philippe PONSONNET
écrit : > You could use the ServletContext's > getInputStream("fileName") method > > Niall > > - Original Message - > From: "Philippe PONSONNET" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, December 04, 200

Access to a database with a configuration file

2004-12-03 Thread Philippe PONSONNET
Hello, I would like to use a database with struts without using the default datasource. I also would like to configure all acces of this database with a xml file named database.xml. The goal of this is to have a really independant model. So I have developped a special class named Database

Access to a database with a configuration file

2004-12-03 Thread Philippe PONSONNET
Hello, I would like to use a database with struts without using the default datasource. I also would like to configure all acces of this database with a xml file named database.xml. The goal of this is to have a really independant model. So I have developped a special class named Database

Struts and datasource

2004-11-03 Thread Philippe PONSONNET
Hello, I try to use a datasource in the struts-config.xml The file :

Struts and datasource

2004-11-03 Thread Philippe PONSONNET
Hello, I try to use a datasource in the struts-config.xml The file :