Advanced Customization > Info*Engine User’s Guide > Info*Engine Custom Tag Reference > Info*Engine Tags > Core Library Tags > displayResource
  
displayResource
The displayResource tag extracts a string from a group created with the Get-Resource webject or directly from a resource bundle. The tag then replaces one variable place holder in the extracted string (if you supply replacement text) and displays the resulting string.
This tag is provided as an alternative to using the Display-Resource webject.
* 
Tags do not support multivalued attributes. Therefore, if an extracted string contains more than one variable place holder, you cannot use the displayResource tag to properly display the resulting string. Instead, you must use the Display-Resource webject.
Syntax
<ie:displayResource bundle="bundle_name"
groupIn="group_name"
key="bundle_key"
param="text"/>
Attribute Descriptions
Require Attributes: bundle or groupIn, and key.
bundle
Indicates the Java class resource bundle from which the localized string is extracted. This attribute is required if no groupIn attribute is supplied.
groupIn
Indicates the bundle group from which the message is to be extracted. This attribute is required if no bundle attribute is supplied.
key
Indicates the key into the resource bundle. This can be either the number or the actual Java variable reference name. This is a required attribute.
param
Specifies text to be inserted into a localized message that contains a variable place holder. For example, if the extracted string contains a variable place holder for text, such as:
The validation of user "{0}" has failed.
You can include the text that replaces {0} in the param attribute. For example, assume that you include the following attribute:
param="abc123"
Then, the resulting string becomes:
The validation of user "abc123" has failed.
This is an optional attribute. If the attribute is omitted, then the substitution does not occur.
If an extracted string contains more than one variable place holder, you must use the Display-Resource webject rather than this tag.
Example
The following example declares that the page uses tags from the Info*Engine core tag library and that the tags have the ie prefix. The displayResource tag in the example specifies that the messages associated with line 19 of the resource bundle retrieved using the Get-Resource webject be displayed:
<%@ taglib uri="http://www.ptc.com/infoengine/taglib/core"
prefix="ie" %>

<ie:webject name="Get-Resource" type="MGT">
<ie:param name="BUNDLE"
data="com.infoengine.util.IEResource"/>
<ie:param name="GROUP_OUT" data="IEResource"/>
</ie:webject>

<b>
<ie:displayResource groupIn="IEResource" key="19"/>
</b>