Yippee!!
After a little more Googling it occurred to me that the default might
be still set in struts.properties; it was.. and when I removed it my
DbResourceBundle started working
Thanks for bearing with me
--
Greg Akins
http://insomnia-consulting.org
http://www.pghcodingdojo.org
http://pit
On Tue, Aug 24, 2010 at 1:13 PM, Dale Newfield wrote:
>>>
>>> struts.xml
>>> >> value="com.fiserv.sourceone.ribs.common.bundles.DbResourceBundle" />
>
> That constant has a String value.
>From what I've read, the struts.custom.i18n.resources constant usually
gets set to something like "global-mes
On 8/24/10 12:54 PM, Greg Akins wrote:
On Tue, Aug 24, 2010 at 10:51 AM, akinsgre wrote:
struts.xml
That constant has a String value.
index.jsp
And this is looking up the specified item in
ApplicationResources.properties
A followup to this:
If I put a static initializer with a Sys
On Tue, Aug 24, 2010 at 10:51 AM, akinsgre wrote:
>
> struts.xml
> value="com.fiserv.sourceone.ribs.common.bundles.DbResourceBundle" />
>
> index.jsp
>
>
A followup to this:
If I put a static initializer with a System.out.println in
DbResourceBundle, it never get's executed; I'm not sure when
OK.. I dropped off this thread because some other fires sprang up at work..
but here I am back where I was a month ago.
struts.xml
index.jsp
The value of "name" is output on the page, and the DbResourceBundle class
doesn't appear to be loaded.
J_e_f_f wrote:
>
> D'oh! Yeah, that was a typ
D'oh! Yeah, that was a typo. Should say struts.xml.
Could you post some relevant code snippets? Also, do you see anything in the
logs when the application starts up?
Jeff
Greg Akins-2 wrote:
>
> On Fri, Jul 16, 2010 at 9:24 PM, J_e_f_f wrote:
>>
>> If you're specifying your DbResourceBundl
On Fri, Jul 16, 2010 at 9:24 PM, J_e_f_f wrote:
>
> If you're specifying your DbResourceBundle class in the web.xml like:
>
> value="com.insomnia.common.bundles.DbResourceBundle" />
>
Was that a typo? Did you mean struts.xml? I have it in struts.xml,
but it doe
Greg,
Greg Akins-2 wrote:
>
> I specify it as a constant in struts.xml and then wrap my s:text with the
> s:i18n using the fully qualified class
>
If you're specifying your DbResourceBundle class in the web.xml like:
This should make your resource bundle available globally within your S2
On Fri, Jul 16, 2010 at 8:21 AM, Mike Fotiou
wrote:
> Finally, in the view, you must wrap an i18n tag for the text-based tags to
> work properly:
>
> <@s.i18n name=".utils.content.DataResourceBundle">
This isn't working for me.
My DbResourceBundle is a class that extends ResourceBundle
I s
ginal Message-
From: Greg Akins [mailto:angryg...@gmail.com]
Sent: Friday, July 16, 2010 9:34 AM
To: Mike Fotiou
Cc: user@struts.apache.org
Subject: Re: Any way to load resources in java.util.ResourceBundle
Thanks Mike
On Fri, Jul 16, 2010 at 8:21 AM, Mike Fotiou
wrote:
> I implemented
o Struts, so this might be a stupid question.. is there
anyway to define that globally? I'm using SiteMesh, so maybe defining
it in a decorator might be good enough?
>
> -Original Message-
> From: Greg Akins [mailto:angryg...@gmail.com]
> Sent: Friday, July 16, 2010 7:58 AM
y.
Mike
-Original Message-
From: Greg Akins [mailto:angryg...@gmail.com]
Sent: Friday, July 16, 2010 7:58 AM
To: user@struts.apache.org
Subject: Re: Any way to load resources in java.util.ResourceBundle
I'm resurrecting this message because I have the same need.
I'm converting s
I'm resurrecting this message because I have the same need.
I'm converting some code to Struts2, from a JSP/Servlet application.
Currently we create bundles from a database, that have keys per
customer and language for most of the text in our application.
A simple solution to this would be to ove
Struts2 used com.opensymphony.xwork2.util.LocalizedTextUtil class for
managing Resource Bundles.
Maybe this scenario will help you:
- Create custom ServletContextListener for your webapp;
- Override contextInitialized method like this (change bundle name):
public void contextInitialized(ServletC
no help on this one?
On Wed, Jan 27, 2010 at 12:43 PM, Bhaarat Sharma wrote:
> We have seen situations where sometimes the global resource bundles are
> lost intermittently for some sessions. We are in a clustered/shared
> environment where multiple apps are deployed onto a GlassFishV2 server.
>
15 matches
Mail list logo