This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Struts and the fly likes Accessing properties in MessageResourcesConfig from  PropertyMessageResources Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Accessing properties in MessageResourcesConfig from  PropertyMessageResources" Watch "Accessing properties in MessageResourcesConfig from  PropertyMessageResources" New topic
Author

Accessing properties in MessageResourcesConfig from PropertyMessageResources

Per Lovdinger
Ranch Hand

Joined: Jun 11, 2001
Posts: 35
Info:

<message-resources parameter="ApplicationResources" factory="MyOwnFactory"
class=MyOwnConfig"
>
<set-property property="xProp" value="xValue"/>
</message-resources>
MyOwnFactory extends PropertyMessageResourcesFactory
MyOwnFactory instansiates MyOwnMessageResources
MyOwnMessageResources extends PropertyMessageResources
MyOwnConfig extends MessageResourcesConfig
MyOwnConfig has a property called xProp


Problem:
How can my class MyOwnMessageResources access property in MyOwnConfig ?
Is there a static method somewhere in Struts api ?


thanks in advance
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing properties in MessageResourcesConfig from PropertyMessageResources