struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sale1975\@inwind\.it" <>
Subject help change message when no key found
Date Fri, 18 Jun 2004 10:06:36 GMT
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

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

Is there a cleaner way to do this???

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message