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
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 ?
--- Vic <[EMAIL PROTECTED]> a écrit :
> Consider reading iBatis Stu
Consider reading 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.
Is it possible to load my resource Database.xml
This solution seems to be not possible because my
Database class is not a Servlet but a classic class.
Is it possible to load my resource Database.xml with
the web.xml descriptor file ?
And how could I load it with my Database class ?
Thanks
--- Niall Pemberton
<[EMAIL PROTECTED]> 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, 2004 12:35 AM
Subject: Access to a database with a configuration file
> Hello,
>
>
>
> I w
8 matches
Mail list logo