File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
jQuery in Action, 2nd edition
 
subject: Accessing properties in MessageResourcesConfig from PropertyMessageResources