You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by lu...@apache.org on 2002/06/29 00:24:05 UTC
cvs commit: jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt BundleSupport.java
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>