You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Yann Verlynde <yv...@oxade.com> on 2002/10/30 09:24:25 UTC
Multiple Ressources
Hello,
This is my struts-config.xml:
<message-resources parameter="com.oxade.struts.ApplicationResources"/>
<message-resources parameter="com.oxade.struts.Configuration" null="false" key="APPLICATION_CONFIGURATION"/>
In my Action:
MessageResources messages = (MessageResources)getServlet().getServletContext().getAttribute("APPLICATION_CONFIGURATION");
When I debug, I saw a reference but nothing is inside.
Moreover, in a JSP, this code work so it have loaded my configuration file in memory.
<bean:message key="foo" bundle="CHANNELS_RESOURCE_KEY"/>
Thanks in advance
Re: Multiple Ressources
Posted by Yann Verlynde <yv...@oxade.com>.
It seems that the initialization is well done but:
[INFO] PropertyMessageResources - -Initializing,
config='com.oxade.struts.Configuration', returnNull=true
[INFO] PropertyMessageResources - -Initializing,
config='com.oxade.struts.ApplicationResources', returnNull=true
But I can't extract the second configuration properties.
----- Original Message -----
From: "Yann Verlynde" <yv...@oxade.com>
To: "Struts" <st...@jakarta.apache.org>
Sent: Wednesday, October 30, 2002 9:24 AM
Subject: Multiple Ressources
Hello,
This is my struts-config.xml:
<message-resources parameter="com.oxade.struts.ApplicationResources"/>
<message-resources parameter="com.oxade.struts.Configuration"
null="false" key="APPLICATION_CONFIGURATION"/>
In my Action:
MessageResources messages =
(MessageResources)getServlet().getServletContext().getAttribute("APPLICATION
_CONFIGURATION");
When I debug, I saw a reference but nothing is inside.
Moreover, in a JSP, this code work so it have loaded my configuration file
in memory.
<bean:message key="foo" bundle="CHANNELS_RESOURCE_KEY"/>
Thanks in advance
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>