From a document I wrote some time ago:

"Setting the null attribute to 'false' will display missing resource values as ???key??? instead of displaying null. This string is easily found during automated testing of your JSPs, making in-container unit testing more complete."

Here's what you set to false in the struts-config.xml:
<message-resources parameter="com.systemmobile.example.ApplicationResources" null="false"/>


You can find the complete document here:
http://www.systemmobile.com/articles/strutsMessageResources.html

[EMAIL PROTECTED] wrote:

Hi,
i 'm tring to change the message visualization (i don't want to show the user a
message like '???foo???') when the key of the message is not present in my
ApplicationResources files. how can i do ? The only solution i found is to modify the method message(pageContext, bundle,
locale, key, args[]) of the RequestUtils class adding at the end the following
lines:


if(result.startWith("???") && result.endWith("???")){
  result= (resources.getMessage(userLocale,"keynotFound.message");
}

Is there cleaner way to do this???
Thanks.
Ale



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to