aspose file tools*
The moose likes Java in General and the fly likes Reading and loading sql queries from properties file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Reading and loading sql queries from properties file" Watch "Reading and loading sql queries from properties file" New topic
Author

Reading and loading sql queries from properties file

Ravi Sree
Ranch Hand

Joined: Jan 24, 2010
Posts: 64

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: 10535
    
    9

Lucky Sree wrote:


Please check your private messages for an important administrative matter.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Ravi Sree
Ranch Hand

Joined: Jan 24, 2010
Posts: 64

Wouter Oet wrote:You're not using the class'es ClassLoader but a static method of the class ClassLoader.


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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reading and loading sql queries from properties file