Advanced Customization > Info*Engine User’s Guide > Display Webject Reference > Display Webjects for HTML > Display-Resource
  
Display-Resource
DESCRIPTION
Extracts and displays a localized string from either a group created with the Get-Resource webject or directly from a resource bundle.
SYNTAX
<ie:webject name="Display-Resource" type="DSP">
  <ie:param name="BUNDLE" data="bundle_name"/>
  <ie:param name="GROUP_IN" data="group_name"/>
  <ie:param name="KEY" data="key"/>
  <ie:param name="PARAM" data="text"/>
</ie:webject>
PARAMETERS
Required
Select
Optional
KEY
GROUP_IN
PARAM
BUNDLE
BUNDLE
Indicates the Java class resource bundle from which the localized string is extracted. This parameter is required if no GROUP_IN is supplied.
GROUP_IN
Indicates the bundle group from which the message is to be extracted. This parameter is required if no BUNDLE is supplied.
KEY
Indicates the key into the resource bundle. The key can be either the number or the actual Java variable reference name. This parameter is required.
PARAM
Specifies the text to be inserted into the localized message. For example, if the extracted string contains a variable place holder for text, such as:
The {0} webject has failed.
Then the text specified for PARAM replaces the place holder. For example if the value specified for PARAM is “Return-Group”, then the resulting string becomes:
The Return-Group webject has failed.
Multiple values can be specified for this parameter. The default for this parameter is "", resulting in no substitution being performed. This parameter is optional.
EXAMPLES
For more information on the Get-Resource webject used below, see Get-Resource.
Webject
<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:webject name="Display-Resource" type="DSP">
  <ie:param name="GROUP_IN" data="IEResource"/>
  <ie:param name="KEY" data="19"/>
</ie:webject>
</b>
Output
The displayed text is a localized message pulled from an Info*Engine resource bundle.