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 17692] New: - Unable to render more than one <html:message ...> tag in page
Date Wed, 05 Mar 2003 21:08:39 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=17692>.
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=17692

Unable to render more than one <html:message ...> tag in page

           Summary: Unable to render more than one <html:message ...> tag in
                    page
           Product: Struts
           Version: 1.1 RC1
          Platform: PC
        OS/Version: MacOS 9
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Custom Tags
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: wattsjm5@yahoo.com


Using modules-based configuration. struts-config.xml resources declared as 
follows:

    <message-resources
        parameter="resources.image" 
        key="IMAGE_RESOURCE_KEY"
        null="false"
        />

Module resources declared as follows:

    <message-resources
        parameter="resources.maintainsecuritycompanyparameters"
        null="false"
    />

File maintainsecuritycompanyparameters.properties exists in 
.../web/WEB-INF/classes/resources and loads successfully.  It contains the 
following:

header.securitycompany.name=Name
header.securitycompany.description=Description

In JSP, if the following line ONLY is present, tag works correctly:

<bean:message key="header.securitycompany.name"/>

If I add another line as follows:

<bean:message key="header.securitycompany.name"/>
<bean:message key="header.securitycompany.description"/>

I get the following:

Cannot find message resources under key org.apache.struts.action.MESSAGE

I suspect the problem is in MessageTag.java - release() method.  I think the 
following line should be removed:

bundle = Globals.MESSAGES_KEY;

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


Mime
View raw message