Re: STRUTS2 Resource Bundles

2007-04-05 Thread Aram Mkhitaryan

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 <[EMAIL PROTECTED]> 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?



STRUTS2 Resource Bundles

2007-04-05 Thread Love, Andrew
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?