InfoCenter Home > 4.2.2.3.7.1.1: JSP syntax: <tsx:getProperty> tag syntax and examples<tsx:getProperty name="bean_name" property="property_name" />where:
Examples<tsx:getProperty name="userProfile" property="username" /> <tsx:getProperty name="request" property=request.getParameter("corporation") /> In most cases, the value of the property attribute will be just the property name. However, to access the request bean or access a property of a property (sub-property), you specify the full form of the property attribute. The full form also gives you the option to specify an index for indexed properties. The optional index can be a constant (such as 2) or an index like the one described in <tsx:repeat>. Some examples of using the full form of the property attribute: <tsx:getProperty name="staffQuery" property=address(currentAddressIndex) /> <tsx:getProperty name="shoppingCart" property=items(4).price /> <tsx:getProperty name="fooBean" property=foo(2).bat(3).boo.far />
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|