RE: Handling Missing Message Key

2004-01-08 Thread Brian Styles
before. Disaster! anyone got any clue how to stop this thanks very much again, Brian From: Daniel Lipofsky [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Handling Missing Message Key Date: Wed, 7 Jan 2004 17:43:57

format tag in bean:write - was :RE: Handling Missing Message Key

2004-01-08 Thread Brian Styles
PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: Handling Missing Message Key Date: Thu, 08 Jan 2004 13:11:38 + Thank you very much to Daniel and Kris for their help on this. Definately, extending the PropertyMessageResources

Re: format tag in bean:write - was :RE: Handling Missing Message Key

2004-01-08 Thread Kris Schneider
] To: [EMAIL PROTECTED] Subject: RE: Handling Missing Message Key Date: Thu, 08 Jan 2004 13:11:38 + Thank you very much to Daniel and Kris for their help on this. Definately, extending the PropertyMessageResources and PropertyMessageResources factory is the way to go. Unfortunately, I've

Re: format tag in bean:write - was :RE: Handling Missing Message Key

2004-01-08 Thread Brian Styles
PROTECTED] Subject: Re: format tag in bean:write - was :RE: Handling Missing Message Key Date: Thu, 8 Jan 2004 08:35:14 -0500 Use the formatKey attribute if you want to pull it from message resources. Have a look at java.text.DecimalFormat for an explanation of formatting patterns for decimal numbers

Re: format tag in bean:write - was :RE: Handling Missing Message Key

2004-01-08 Thread Kris Schneider
just copy into the resource bundle? From: Kris Schneider [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: format tag in bean:write - was :RE: Handling Missing Message Key Date: Thu, 8 Jan 2004 08:35:14

Re: format tag in bean:write - was :RE: Handling Missing Message Key

2004-01-08 Thread Brian Styles
thanks again for all your help on this Kris! Invaluable! From: Kris Schneider [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: format tag in bean:write - was :RE: Handling Missing Message Key Date: Thu, 8 Jan

Re: Handling Missing Message Key

2004-01-08 Thread Manfred Wolff
Yes: Set null to false in the message-resources tag: message-resources parameter=resources.application null=false/ Then you get something like this ???database_property??? by a missing key. Manfred Brian Styles wrote: Hi all, I'm using the i8ln features in the struts bean tag library I

RE: Handling Missing Message Key

2004-01-07 Thread Mike Jasnowski
set the 'null' property in the config for the msg bundle to 'false' so the exception doesn't happen, the DTD for the struts config details it more -Original Message- From: Brian Styles [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 2:49 PM To: [EMAIL PROTECTED] Subject:

RE: Handling Missing Message Key

2004-01-07 Thread Brian Styles
-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Handling Missing Message Key Date: Wed, 7 Jan 2004 14:58:33 -0500 set the 'null' property in the config for the msg bundle to 'false' so the exception doesn't happen, the DTD for the struts

Re: Handling Missing Message Key

2004-01-07 Thread Kris Schneider
Pretty sure you'd have to handle that yourself. It's probably cleaner to do it in an action. Action class: String dbProp = ...; MessageResources messages = getResources(request); String message = dpProp; if (messages.isPresent(dbProp)) { message = messages.getMessage(dbProp); }

Re: Handling Missing Message Key

2004-01-07 Thread Brian Styles
have any idea how to get rid of the ???s From: Kris Schneider [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Handling Missing Message Key Date: Wed, 7 Jan 2004 15:16:11 -0500 Pretty sure you'd have to handle

Re: Handling Missing Message Key

2004-01-07 Thread Brian Styles
request? thanks, Brian From: Brian Styles [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Handling Missing Message Key Date: Wed, 07 Jan 2004 21:18:04 + Thanks for the reply Kris, I think that setting the null property to true

Re: Handling Missing Message Key

2004-01-07 Thread Kris Schneider
] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Handling Missing Message Key Date: Wed, 7 Jan 2004 15:16:11 -0500 Pretty sure you'd have to handle that yourself. It's probably cleaner to do it in an action. Action class: String dbProp = ...; MessageResources messages = getResources

Re: Handling Missing Message Key

2004-01-07 Thread Kris Schneider
can make a feature request? http://jakarta.apache.org/struts/faqs/helping.html thanks, Brian From: Brian Styles [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Handling Missing Message Key Date: Wed, 07 Jan 2004 21:18:04 + Thanks

RE: Handling Missing Message Key

2004-01-07 Thread Daniel Lipofsky
Styles [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 1:18 PM To: [EMAIL PROTECTED] Subject: Re: Handling Missing Message Key Thanks for the reply Kris, I think that setting the null property to true is probably the way to go. I even found an exactly similar thread