This tag get a message specified by the key attribute from a message catalog and writes it to the page output. Also see the catalog tag.
Empty
If the name attribute is not specified then a parent catalog tag is used to locate the message catalog
The tag has the following attributes for which the Required values are “Yes” and “No”:
Name of the message catalog to use.
Key used to find the message in the catalog.
None.
<%-- get key 'message' from catalog 'sample' --%> <util:catalog resource="sample"> Message = <util:msg key="message"/> </util:catalog> <%-- get key from a named catalog --%> <util:catalog id="sample" resource="sample"/> ... Message = <util:msg name="sample" key="message"/>