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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to