Get-Resource
DESCRIPTION
Creates an Info*Engine group from the localized strings in a Java resource bundle. The language of the strings in the created group is determined by the language setting of a client’s web browser.
The Get-Resource webject is used in conjunction with the Display-Resource webject to support insertion of localized text into web pages.
SYNTAX
<ie:webject name="Get-Resource" type="MGT">
<ie:param name="BUNDLE" data="resource_bundle"/>
<ie:param name="GROUP_OUT" data="group_name"/>
</ie:webject>
PARAMETERS
Required
|
Select
|
Optional
|
BUNDLE
|
|
GROUP_OUT
|
BUNDLE
Identifies the Java class base resource bundle from which localized strings are to be retrieved. This parameter is required.
GROUP_OUT
Specifies the name of an Info*Engine group in which to store retrieved localized strings. The default for this parameter is bundle. This parameter is optional.
EXAMPLE
The following Get-Resource example JSP page creates a group using localized strings from the specified resource bundle:
<%@page language="java"
session="false"
errorPage="../IEError.jsp"%>
<%@ taglib uri="http://www.ptc.com/infoengine/taglib/core"
prefix="ie" %>
<html>
<head><title>Get Properties</title></head>
<body>
<ie:webject name="Get-Resource" type="MGT">
<ie:param name="BUNDLE"
data="com.infoengine.util.IEResource"/>
</ie:webject>
<ie:webject name="Display-Table" type="DSP">
<ie:param name="ATTRIBUTE" data="$(@FORM[]key[0])"
default="20" delim=","/>
</ie:webject>
</body>
</html>
The key variable can be specified in a form, or the specified default value is used.