Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to read ApplicationResources file from the action  RSS feed

 
Archana Annamaneni
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could some one tell me , how can I read a property from ApplicationResources.properties file in my action class.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Action has a great method of getResources(request) which returns a MessageResources and you can call getMessage(String key) on that.
 
Archana Annamaneni
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks that works.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!