Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to read .properties file in grails ?  RSS feed

 
Nazeer Ahammad
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

How to read .properties file which is in WEB-APP folder in grails ?

please help me....



Regards,
Nazeer
 
Pavel Sok
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is simple:
Let's assume you have a certain property file with one property: my.property="property"
You should specify your property file in Config.groovy

After that using DI you'll get in your grails application:

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!