Sun Java System Portal Server Mobile Access 7.1 Tag Library Reference

msg

Description

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.

Tag Body

Empty

Restrictions

If the name attribute is not specified then a parent catalog tag is used to locate the message catalog

Attributes

The tag has the following attributes for which the Required values are “Yes” and “No”:

name

Name of the message catalog to use.

key

Key used to find the message in the catalog.

Properties

None.

Example(s)
<%-- 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"/>