You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/04/02 02:33:31 UTC
DO NOT REPLY [Bug 18591] New: -
html:option tag won't find resources in request scope
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=18591>.
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=18591
html:option tag won't find resources in request scope
Summary: html:option tag won't find resources in request scope
Product: Struts
Version: 1.1 RC1
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: Utilities
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: toni.menninger@silverleap.com
There's a bug in org.apache.struts.util.RequestUtils.message().
If no resoruce bundle is specified, it will look up the default resources first
in request scope, then in application scope. But if a bundle is specified, it
will look it up only in application scope:
(line 929)
if (bundle == null) {
bundle = Globals.MESSAGES_KEY; // The brace } should close here
resources =
(MessageResources) pageContext.getAttribute(bundle,
PageContext.REQUEST_SCOPE);
} // The brace is at the wrong place.
html:option tag (org.apache.struts.taglib.html.OptionsTag) defines the default
bundle (line 109), which it shouldn't do. Each time it calls the above message
(), the request scope will never be searched.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org