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/06/23 17:18:24 UTC

DO NOT REPLY [Bug 21013] New: - does not necessarily need to break when key not found

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=21013>.
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=21013

<bean:message> does not necessarily need to break when key not found

           Summary: <bean:message> does not necessarily need to break when
                    key not found
           Product: Struts
           Version: 0.5 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Custom Tags
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: aalvarez@gmx.de


It would be nice to add a "default" attribute containg a text to be displayed, 
if a dynamically created key fails to exist in the Applicationresources file

In this example ...

<% mykey = "country." + country; %>
<bean:message key="<%= myKey %>" default="<%country%>/>

...it would not throw an exception if the key fails to exist.

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