jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu...@apache.org
Subject cvs commit: jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt BundleSupport.java MessageSupport.java ParseDateSupport.java
Date Thu, 04 Apr 2002 18:06:03 GMT
luehe       02/04/04 10:06:03

  Modified:    standard/src/org/apache/taglibs/standard/tag/common/fmt
                        BundleSupport.java MessageSupport.java
                        ParseDateSupport.java
  Log:
  Removed logging to servlet context for missing keys or resource bundles
  
  Revision  Changes    Path
  1.16      +0 -3      jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt/BundleSupport.java
  
  Index: BundleSupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt/BundleSupport.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- BundleSupport.java	23 Mar 2002 01:33:50 -0000	1.15
  +++ BundleSupport.java	4 Apr 2002 18:06:03 -0000	1.16
  @@ -241,9 +241,6 @@
   	if (ret != null) {
   	    // set response locale
   	    LocaleSupport.setResponseLocale(pageContext, ret.getLocale());
  -	} else {
  -	    ServletContext sc = pageContext.getServletContext();
  -	    sc.log(Resources.getMessage("MISSING_RESOURCE_BUNDLE", basename));
   	}
   	
   	return ret;
  
  
  
  1.11      +0 -2      jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt/MessageSupport.java
  
  Index: MessageSupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt/MessageSupport.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- MessageSupport.java	1 Apr 2002 20:21:03 -0000	1.10
  +++ MessageSupport.java	4 Apr 2002 18:06:03 -0000	1.11
  @@ -191,8 +191,6 @@
   		    message = formatter.format(messageArgs);
   		}
   	    } catch (MissingResourceException mre) {
  -		ServletContext sc = pageContext.getServletContext();
  -		sc.log(Resources.getMessage("UNDEFINED_KEY", key, bundle));
   		message = UNDEFINED_KEY + key + UNDEFINED_KEY;
   	    }
   	}
  
  
  
  1.13      +4 -1      jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt/ParseDateSupport.java
  
  Index: ParseDateSupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt/ParseDateSupport.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- ParseDateSupport.java	21 Mar 2002 18:44:00 -0000	1.12
  +++ ParseDateSupport.java	4 Apr 2002 18:06:03 -0000	1.13
  @@ -204,8 +204,11 @@
   	if (var != null) {
   	    pageContext.setAttribute(var, parsed, scope);	
   	} else {
  +	    DateFormat formatter
  +		= DateFormat.getDateInstance(DateFormat.DEFAULT,
  +					     Locale.ENGLISH);
   	    try {
  -		pageContext.getOut().print(parsed);
  +		pageContext.getOut().print(formatter.format(parsed));
   	    } catch (IOException ioe) {
   		throw new JspTagException(ioe.getMessage());
   	    }
  
  
  

--
To unsubscribe, e-mail:   <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-dev-help@jakarta.apache.org>


Mime
View raw message