jmitchell    2003/03/10 16:00:28

  Modified:    src/share/org/apache/struts/taglib/bean MessageTag.java
  Log:
  As discussed (briefly) on the dev list:
  http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17838
  
  This fix helps to debug specific user errors by showing quotes around the
  key that is in error (missing due to mispelling or additional whitespace)
  
  Revision  Changes    Path
  1.10      +5 -5      
jakarta-struts/src/share/org/apache/struts/taglib/bean/MessageTag.java
  
  Index: MessageTag.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/bean/MessageTag.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- MessageTag.java   5 Jan 2003 00:40:04 -0000       1.9
  +++ MessageTag.java   11 Mar 2003 00:00:28 -0000      1.10
  @@ -295,7 +295,7 @@
                                                 this.localeKey, key, args);
        if (message == null) {
            JspException e = new JspException
  -             (messages.getMessage("message.message", key));
  +             (messages.getMessage("message.message", "\"" + key + "\""));
               RequestUtils.saveException(pageContext, e);
               throw e;
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to