Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Consider Paul's rocket mass heater.
 
subject: Accessing properties in MessageResourcesConfig from PropertyMessageResources
 
Similar Threads
Trying to use Tiles--Little success :-(
jspException: Missing message for key "index.title"
message-resources reload
Managing message Resource Bundle struts 1.3.8
Accessing parameter from web.xml inside a MessageResource class