Re: [S2] Change struts-default.xml content

2007-10-25 Thread Igor Vlasov
The main goal: I want to get i18n strings from properties files in UTF-8 encoding. The secondary goal: Load current locale setting from JSTL config variables like Config.FMT_LOCALIZATION_CONTEXT and its locale variable value Thus I will use jstl-fmt tags and strust i18n support TOGETHER :

Re: [S2] Change struts-default.xml content

2007-10-25 Thread Don Brown
Currently, the TextProvider impl is not pluggable. Note that Action classes themselves can implement TextProvider (and usually do via ActionSupport), so they can customize it all they need. What is your usecase for having your own TextProvider? That class is only used in a few places, so perhaps

Re: [S2] Change struts-default.xml content

2007-10-25 Thread Igor Vlasov
The class com.opensymphony.xwork2.config.providers.XmlConfigurationProvider in method register(...) use this logic for checking if (containerBuilder.contains(ctype, name)) { Location loc = LocationUtils.getLocation(loadedBeans.get(ctype.getName() + name)); if (throwExceptionO

Re: [S2] Change struts-default.xml content

2007-10-25 Thread cilquirm
I think the problem might be that there may not be a way to configure a different TextProvider. Consider the object factory example, in this case guice : What this does is create a bean provider with a given name of that type. The constant portion is actually the configuration

Re: [S2] Change struts-default.xml content

2007-10-24 Thread Igor Vlasov
This action cause an error. I will write in struts.xml: Re: [S2] Change struts-default.xml content
you can redefine it in your struts.xml, much like how you would specify the object factory to override the default object factory . -a Igor Vlasov wrote: > > Hello. > I want to change some information in struts-default.xml. > > I can move it to classes directoty and do any change:-) > >