Any way to load resources in java.util.ResourceBundle

2010-01-27 Thread Bhaarat Sharma
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. Multiple apps share the struts2 core jars. We have some pages where we have written a

Re: Any way to load resources in java.util.ResourceBundle

2010-01-29 Thread Bhaarat Sharma
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. >

Re: Any way to load resources in java.util.ResourceBundle

2010-02-18 Thread roman danilin
question is..can we do the same for struts2. Can we forcefully load >> the >> resourcebundles inside java.util.ResourceBundle and then have them be >> used >> in tag? >> >> > > -- View this message in context: http://old.nabble.com/Any-way-to-load

Re: Any way to load resources in java.util.ResourceBundle

2010-07-16 Thread Greg Akins
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

RE: Any way to load resources in java.util.ResourceBundle

2010-07-16 Thread Mike Fotiou
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

Re: Any way to load resources in java.util.ResourceBundle

2010-07-16 Thread Greg Akins
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

RE: Any way to load resources in java.util.ResourceBundle

2010-07-16 Thread Mike Fotiou
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

Re: Any way to load resources in java.util.ResourceBundle

2010-07-16 Thread Greg Akins
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

Re: Any way to load resources in java.util.ResourceBundle

2010-07-16 Thread J_e_f_f
bally within your S2 application. You shouldn't need to specify it again with the i18n tag. Just use the s:text tag. Jeff -- View this message in context: http://old.nabble.com/Re%3A-Any-way-to-load-resources-in-java.util.ResourceBundle-tp29182865p29189230.html Sent from the Struts - User m

Re: Any way to load resources in java.util.ResourceBundle

2010-07-16 Thread Greg Akins
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

Re: Any way to load resources in java.util.ResourceBundle

2010-07-19 Thread J_e_f_f
dojo.org > http://pittjug.dev.java.net > http://twitter.com/akinsgre > http://www.linkedin.com/in/akinsgre > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this m

Re: Any way to load resources in java.util.ResourceBundle

2010-08-24 Thread akinsgre
; -- >> Greg Akins >> >> http://insomnia-consulting.org >> http://www.pghcodingdojo.org >> http://pittjug.dev.java.net >> http://twitter.com/akinsgre >> http://www.linkedin.com/in/akinsgre >> >> --------------------- >> To unsub

Re: Any way to load resources in java.util.ResourceBundle

2010-08-24 Thread Greg Akins
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

Re: Any way to load resources in java.util.ResourceBundle

2010-08-24 Thread Dale Newfield
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

Re: Any way to load resources in java.util.ResourceBundle

2010-08-24 Thread Greg Akins
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

Re: Any way to load resources in java.util.ResourceBundle

2010-08-24 Thread Greg Akins
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