Hi

I have multiple resources

    <message-resources parameter="resources.application"/>
    <message-resources key="config" parameter="resources.config"/>

In jsp I can get the values by doing

<bean:message key="aValue"/>
<bean:message bundle="config" key="anotherValue"/>

But how do I get the values from resources with the config key in an action?
Somewhere I read it's possible by doing:
MessageResources mr = (MessageResources)request.getAttribute("config");
But this is not working for me.

I tried a work around by using
org.apache.struts.taglib.bean.MessageTag mt = new 
org.apache.struts.taglib.bean.MessageTag();
mt.setBundle("config");
mt.setKey("anotherValue");
but how do I read the variable
mt.getValue("anotherValue"); gives me null

ne1?




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to