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
Date Fri, 28 Jun 2002 22:24:05 GMT
luehe       2002/06/28 15:24:05

  Modified:    standard/src/org/apache/taglibs/standard/tag/common/fmt
                        BundleSupport.java
  Log:
  Fixed 10334: BundleSupport fails to find resources in a web app
  
  Revision  Changes    Path
  1.27      +5 -2      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.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- BundleSupport.java	29 Apr 2002 16:35:03 -0000	1.26
  +++ BundleSupport.java	28 Jun 2002 22:24:05 -0000	1.27
  @@ -233,7 +233,8 @@
   	if (locCtxt == null) {
   	    // try using the root resource bundle with the given basename
   	    try {
  -		bundle = ResourceBundle.getBundle(basename, EMPTY_LOCALE);
  +		bundle = ResourceBundle.getBundle(basename, EMPTY_LOCALE,
  +						  Thread.currentThread().getContextClassLoader());
   		if (bundle != null) {
   		    locCtxt = new LocalizationContext(bundle, null);
   		}
  @@ -314,7 +315,9 @@
   	ResourceBundle match = null;
   
   	try {
  -	    ResourceBundle bundle = ResourceBundle.getBundle(basename, pref);
  +	    ResourceBundle bundle =
  +		ResourceBundle.getBundle(basename, pref,
  +					 Thread.currentThread().getContextClassLoader());
   	    Locale avail = bundle.getLocale();
   	    if (pref.equals(avail)) {
   		// Exact match
  
  
  

--
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