WAS v8.5 > Reference > Developer detailed usage informationtsx:getProperty tag JSP syntax and examples (deprecated)
The <tsx:getProperty> tag gets the value of a bean to display in a JSP file.
Deprecated feature: Support for tsx tags in the JSP (JSP) engine are deprecated in WebSphere Application Server v6.0. Instead of using the tsx tags, you should use equivalent tags from the JSP Standard Tag Library (JSTL).
This IBM extension of the Sun JSP <jsp:getProperty> tag implements all of the <jsp:getProperty> function and adds the ability to introspect a database bean created using the IBM extension <tsx:dbquery> or <tsx:dbmodify>.
Note: We cannot assign the value from this tag to a variable. The value, generated as output from this tag, displays in the browser window.This section describes the syntax of the <tsx:getProperty> tag:
<tsx:getProperty name="bean_name" property="property_name" />where:
- name
Name of the bean declared by the id attribute of a <tsx:dbquery> syntax within the JSP file. Refer to the <tsx:dbquery> article for an explanation. The value of this attribute is case-sensitive.
- property
Represents the property of the bean to access for substitution. The value of the attribute is case-sensitive and is the locale-independent name of the property.
Tag example:
<tsx:getProperty name="userProfile" property="username" />
Related concepts:
JSP
Related
Use installed optional packages
Manage shared libraries
Reference:
Web applications: Resources for learning
dbquery tag JSP syntax (deprecated)