struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sale1975\@inwind\.it" <sale1...@inwind.it>
Subject help message resources
Date Fri, 18 Jun 2004 09:03:54 GMT
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message