You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Love, Andrew" <An...@McKesson.com> on 2007/04/05 22:52:15 UTC
STRUTS2 Resource Bundles
Hello,
I would like to add a resource bundle to the path for validation
messages. The bundle must load from a path that does not follow the
Package hierarchy defined in struts2. The textProvider in the
ActionSupport class is private so I cannot directly add the bundle from
an Action class.
private final transient TextProvider textProvider =
TextProviderFactory.getInstance(getClass(), this);
Anyone know a clever way to do this?
Re: STRUTS2 Resource Bundles
Posted by Aram Mkhitaryan <ar...@googlemail.com>.
Add struts.properties next to struts.xml and add global resources like
struts.custom.i18n.resources=com.xyz.MyResourceBundle,com.xyz.props
also see here for more details
http://struts.apache.org/2.0.6/docs/how-do-i-set-a-global-resource-bundle.html
Best,
Aram
On 4/6/07, Love, Andrew <An...@mckesson.com> wrote:
>
> Hello,
>
> I would like to add a resource bundle to the path for validation
> messages. The bundle must load from a path that does not follow the
> Package hierarchy defined in struts2. The textProvider in the
> ActionSupport class is private so I cannot directly add the bundle from
> an Action class.
>
> private final transient TextProvider textProvider =
> TextProviderFactory.getInstance(getClass(), this);
>
> Anyone know a clever way to do this?
>