You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by sa...@pg.com on 2003/06/17 19:02:17 UTC

multiple parameters for message resources

I want to be able to pass multiple parameters for a message resource
so that i can define common message resources in one properties file and the
module specific message resources on another.

I think Struts doesnt support this (tried and it didnt work)... so do i need to
extend the org.apache.struts.config.MessageResourcesConfig
and make my own implementation, or is there another way?

Example:
base.error.resources
module.error.resources

<message-resources key="ERROR_BUNDLE" parameter="base.error.resources,
module.error.resources"/>

Pedro Salgado


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: multiple parameters for message resources

Posted by Mike Jasnowski <mj...@bea.com>.
Unless I misunderstood your question, why don't you just define two message
resources? One as the base/default w/o a "parameter" att, and one
app-specific with your "parameter" attr?

-----Original Message-----
From: salgado.pc@pg.com [mailto:salgado.pc@pg.com]
Sent: Tuesday, June 17, 2003 1:02 PM
To: struts-user@jakarta.apache.org
Subject: multiple parameters for message resources



I want to be able to pass multiple parameters for a message resource
so that i can define common message resources in one properties file and the
module specific message resources on another.

I think Struts doesnt support this (tried and it didnt work)... so do i need
to
extend the org.apache.struts.config.MessageResourcesConfig
and make my own implementation, or is there another way?

Example:
base.error.resources
module.error.resources

<message-resources key="ERROR_BUNDLE" parameter="base.error.resources,
module.error.resources"/>

Pedro Salgado


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org