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 bu...@apache.org on 2004/04/07 11:26:51 UTC

DO NOT REPLY [Bug 18525] - BundleTag keep the first Locale found for subsequent sessions

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=18525>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=18525

BundleTag keep the first Locale found for subsequent sessions





------- Additional Comments From p_samson@yahoo.com  2004-04-07 09:26 -------
Additional fix:

Because of the reuse mecanism, any internal member variable has to be
initialized. So add this code at the very beginning of doStartTag()
in BundleTag.java

    	// initialize internal member variables
    	_bundle = null;

This will fix a MissingResourceException on a MessageTag
after a session time-out.

Note: to confirm my previous fix, member variables associated with attributes
(such as _locale) must be read-only in the tag processing. Only the JSP
container is allowed to write them through setXXX() methods.

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