RE: Access to message properties from within application
-Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 6:46 PM To: Struts Users Mailing List Subject: RE: Access to message properties from within application -Original Message- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 9:44 AM To: 'Struts Users Mailing List' Subject: RE: Access to message properties from within application Thanks Jim, RTFM I did (yoda would say ;) What I want to do though, is access the localized messages from within my application code - not from within my JSP's or Servlets but out of my logic. I could not find anything on this in the manual yet. Am I beeing completely ignorant not seeing the obvious, or is this not that easy? Jim Barrows wrote: Ah in that case. you are reading the wrong FM, you probably want the J2SE documentation, and are looking for MessageFormat. I assume that you have found and don't want to use org.apache.struts.util.MessageResources for this. I found org.apache.struts.util.MessageResources now ;) and am trying to get it to do what I want. Thanks for the hint. Cheers, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Access to message properties from within application
Anyone? If the solution is to obvious, give me a hint. Thanks, Jan -Original Message- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 11:14 AM To: Struts Users Mailing List Subject: Access to message properties from within application Hi List, is there a way to access the language specific messages stored in my resource file from within my logics java code? I understand that I will probably need to specify the locale that I need - that should not be the problem though. TIA, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Access to message properties from within application
-Original Message- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 9:20 AM To: 'Struts Users Mailing List' Subject: RE: Access to message properties from within application Anyone? If the solution is to obvious, give me a hint. Obnoxious hint: RTFM :) More polite: http://struts.apache.org/userGuide/struts-bean.html#message Thanks, Jan -Original Message- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 11:14 AM To: Struts Users Mailing List Subject: Access to message properties from within application Hi List, is there a way to access the language specific messages stored in my resource file from within my logics java code? I understand that I will probably need to specify the locale that I need - that should not be the problem though. TIA, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Access to message properties from within application
See if this works: getResources(request).getMessage(request.getLocale(),test.me); getResources(request) is a method of Action. Hubert --- Jan Behrens [EMAIL PROTECTED] wrote: Thanks Jim, RTFM I did (yoda would say ;) What I want to do though, is access the localized messages from within my application code - not from within my JSP's or Servlets but out of my logic. I could not find anything on this in the manual yet. Am I beeing completely ignorant not seeing the obvious, or is this not that easy? Thanks, Jan -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 6:20 PM To: Struts Users Mailing List Subject: RE: Access to message properties from within application -Original Message- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 9:20 AM To: 'Struts Users Mailing List' Subject: RE: Access to message properties from within application Anyone? If the solution is to obvious, give me a hint. Obnoxious hint: RTFM :) More polite: http://struts.apache.org/userGuide/struts-bean.html#message Thanks, Jan -Original Message- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 11:14 AM To: Struts Users Mailing List Subject: Access to message properties from within application Hi List, is there a way to access the language specific messages stored in my resource file from within my logics java code? I understand that I will probably need to specify the locale that I need - that should not be the problem though. TIA, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]