struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 10496] New: - Problem with LookupDispatchAction and multiple resource bundles
Date Fri, 05 Jul 2002 06:27:29 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=10496>.
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=10496

Problem with LookupDispatchAction and multiple resource bundles

           Summary: Problem with LookupDispatchAction and multiple resource
                    bundles
           Product: Struts
           Version: 1.1 Beta 1
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Standard Actions
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: maslovsky@mail.ru


LookupDispatchAction does not support buttons with labels created from
non-default resource bundle. In this example:

struts-config.xml:
<message-resources key="myBundle" parameter="myResources"/>

jsp:
<html:form action="/test">
    <html:submit property="action">
        <bean:message key="button.add" bundle="myBundle"/>
    </html:submit>
    <html:submit property="action">
        <bean:message key="button.delete" bundle="myBundle"/>
    </html:submit>
</html:form>
  
the LookupDispatchAction fails to find keys for the button labels because they
come from a bundle different from default and it looks for the messages under
Action.MESSAGES_KEY request attribute.

--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>


Mime
View raw message