jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 12508] New: - i18n MessageTag does not work with tag pooling
Date Wed, 11 Sep 2002 05:44:08 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12508>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12508

i18n MessageTag does not work with tag pooling

           Summary: i18n MessageTag does not work with tag pooling
           Product: Taglibs
           Version: 1.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: I18N Taglib
        AssignedTo: taglibs-dev@jakarta.apache.org
        ReportedBy: ari.suutari@syncrontech.com


MessageTag produces unexpected results when tag pooling is in use. 
This is caused by first value of tag being present on all 
tag invocations.This can be fixed by this patch: 
 
  
--- MessageTag.java     Sun Sep  8 11:37:08 2002 
+++ NewMessageTag.java  Tue Sep 10 08:35:48 2002 
@@ -238,6 +238,8 @@ 
         throw new JspException("A bundle must be defined by the BundleTag 
prior to using a MessageTag."); 
         } 
  
+    _value = null; 
+ 
     // see if the bundle has a value, if not, we default to the tag contents 
     try 
         { 
@@ -306,6 +308,10 @@ 
         { 
         throw new JspException("IO Error: " + e.getMessage()); 
         } 
+ 
+    // clear current value 
+ 
+    _value = null; 
  
     // only process the body once 
     return BodyTag.EVAL_PAGE;

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