In order to include a text coming from a *.properties file, is it better to use :

   Map uiLabelMap = (Map) context.get("uiLabelMap");
   localizedTitle = (String) uiLabelMap.get("CommonViewCalendar");

or to use:

   Locale locale = (Locale)context.get("locale");
   localizedTitle = UtilProperties.getMessage("CommonUiLabels",
   "CommonViewCalendar", locale);

Thanks in advance

JSH



Reply via email to