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 change message when no key found
Date Fri, 18 Jun 2004 10:06:36 GMT
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


Mime
View raw message