You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "sale1975@inwind.it" <sa...@inwind.it> on 2004/06/18 12:06:36 UTC

help change message when no key found

Hi,
sorry if this may be a stupid question........but 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 a cleaner way to do this???
Thanks.
Ale



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org