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


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

Reply via email to