permaculture playing cards
The moose likes Struts and the fly likes Extract resource file name fron struts-config Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Extract resource file name fron struts-config" Watch "Extract resource file name fron struts-config" New topic
Author

Extract resource file name fron struts-config

M Mehta
Ranch Hand

Joined: Aug 03, 2006
Posts: 92
I am using more than one message-resources in the struts-config. One is the Usual ApplicationResources and other if another properties file which I am refereing with a key bundle.resource. The file maaped to the bundle.resource changes with difference servers. I want to access the properies defined in this file in the Java code (not in JSP).

I can use the Property API provided by java. is there any way I can extract the name of the file associated with bundle.resource from struts-cinfig at runtime?
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Extract resource file name fron struts-config
 
It's not a secret anymore!