Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading and loading sql queries from properties file

 
Ravi Sree
Ranch Hand
Posts: 64
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're not using the class'es ClassLoader but a static method of the class ClassLoader.
 
Maneesh Godbole
Saloon Keeper
Posts: 11185
15
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lucky Sree wrote:


Please check your private messages for an important administrative matter.
 
Ravi Sree
Ranch Hand
Posts: 64
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic