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
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
]
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
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
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
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
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
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:
-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
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);
}
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
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
]
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
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
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
15 matches
Mail list logo