| Author |
Reading and loading sql queries from properties file
|
Ravi Sree
Ranch Hand
Joined: Jan 24, 2010
Posts: 57
|
|
Hi all,
I am working on a web application project whose access to data is done by using the DAO pattern.
Here I need to load the queries from a properties file placed inside WEB-INF.
Following is the code i used:
PreparedStatementCreatorBean
But It doesnt read the properties file.
I cant make out where iam going wrong.
Thanks in advance,
Sree
|
 |
Wouter Oet
Saloon Keeper
Joined: Oct 25, 2008
Posts: 2700
|
|
|
You're not using the class'es ClassLoader but a static method of the class ClassLoader.
|
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8563
|
|
Lucky Sree wrote:
Please check your private messages for an important administrative matter.
|
[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
|
 |
Ravi Sree
Ranch Hand
Joined: Jan 24, 2010
Posts: 57
|
|
Hi Wouter Oet,
Thanks for replying.
I did the changes as your suggested,
but it is still showing the same error at the same line.
Regards,
Sree
|
 |
 |
|
|
subject: Reading and loading sql queries from properties file
|
|
|