You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "Craig McClanahan (JIRA)" <ji...@apache.org> on 2006/04/26 08:14:53 UTC

[jira] Moved: (SHALE-116) [Shale] Messages should log warning if name not found

     [ http://issues.apache.org/struts/browse/SHALE-116?page=all ]

Craig McClanahan moved STR-2761 to SHALE-116:
---------------------------------------------

      Project: Shale  (was: Struts Action 1)
          Key: SHALE-116  (was: STR-2761)
    Component:     (was: Shale)
      Version:     (was: Nightly Build)
    Assign To:     (was: Struts Developer Mailing List)

> [Shale] Messages should log warning if name not found
> -----------------------------------------------------
>
>          Key: SHALE-116
>          URL: http://issues.apache.org/struts/browse/SHALE-116
>      Project: Shale
>         Type: Improvement

>  Environment: Operating System: other
> Platform: Other
>     Reporter: Hermod Opstvedt
>     Priority: Minor

>
> public String getMessage(String key, Locale locale) {
>         ResourceBundle rb = getBundle(locale);
>         try {
>             return rb.getString(key);
>         } catch (MissingResourceException e) {
> +	    Log.warn("Name : " + key + " not found in bundle");
>             return null;
>         }
>     }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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