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
Hi, Philippe.
(B
(B>But I have a problem when I want to load the database.xml file : I can't get
(B>its path when my webapp is loaded.
(B>
(B>The instruction getClass().getResource(".").getFile() always return null.
(B>
(B>
(B>
(B>How could I do ?
(B
(Bif your question is how to load xm
[mailto:[EMAIL PROTECTED]
Enviado el: sábado, 04 de diciembre de 2004 14:02
Para: Struts Users Mailing List
Asunto: Re: Access to a database with a configuration file
I have already seen the hibernate framework but I
prefere to not use an OR for beginning. I would like
to only use my very simple Dat
Philippe PONSONNET wrote:
I have already seen the hibernate framework but I
prefere to not use an OR for beginning. I would like
to only use my very simple Database class. I suppose
it is possible to load this xml file by by a specific
way, isnt-it ?
iBatis is not O/R! It's SQL or E/R.
I do no
CTED]> a écrit :
> >
> >>You could use the ServletContext's
> >>getInputStream("fileName") method
> >>
> >>Niall
> >>
> >>----- Original Message -
> >>From: "Philippe PONSONNET" <[EMAIL PROTECTED]>
> &g
ET" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 04, 2004 12:35 AM
Subject: Access to a database with a configuration
file
Hello,
I would like to use a database with struts without
using the default
datasource.
I also would like to configure all a
é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
You could use the ServletContext's getInputStream("fileName") method
Niall
- Original Message -
From: "Philippe PONSONNET" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 04, 2004 12:35 AM
Subject: Access to a database with a co
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
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
10 matches
Mail list logo