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

2010-08-24 Thread akinsgre
-- View this message in context: http://old.nabble.com/Re%3A-Any-way-to-load-resources-in-java.util.ResourceBundle-tp29182865p29522847.html Sent from the Struts - User mailing list archive at Nabble.com

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 angryg...@gmail.com wrote: struts.xml constant name=struts.custom.i18n.resources value=com.fiserv.sourceone.ribs.common.bundles.DbResourceBundle / index.jsp s:text name=FS_UI_ACCT_SWITCH_EN_BUTTON_GO_ACCOUNT/ A followup to this: If I put a

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, akinsgreangryg...@gmail.com wrote: struts.xml constant name=struts.custom.i18n.resources value=com.fiserv.sourceone.ribs.common.bundles.DbResourceBundle / That constant has a String value. index.jsp s:text

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 d...@newfield.org wrote: struts.xml constant name=struts.custom.i18n.resources 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

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

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

2010-07-19 Thread J_e_f_f
- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://old.nabble.com/Re%3A-Any-way-to-load-resources-in-java.util.ResourceBundle

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

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

2010-07-16 Thread Mike Fotiou
the getLocale() method appropriately. 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

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

2010-07-16 Thread Greg Akins
.. 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 To: user@struts.apache.org Subject: Re: Any way to load

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

2010-07-16 Thread Mike Fotiou
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 mike.fot...@tpsgc-pwgsc.gc.ca wrote:  I

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 mike.fot...@tpsgc-pwgsc.gc.ca 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

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

2010-07-16 Thread J_e_f_f
=com.insomnia.common.bundles.DbResourceBundle / This should make your resource bundle available globally 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

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 jam0...@gmail.com wrote: If you're specifying your DbResourceBundle class in the web.xml like: constant name=struts.custom.i18n.resources value=com.insomnia.common.bundles.DbResourceBundle / Was that a typo? Did you

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

2010-02-18 Thread roman danilin
-to-load-resources-in-java.util.ResourceBundle-tp27343882p27642648.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h

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 bhaara...@gmail.comwrote: 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

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