jsp:getProperty |

The jsp:getProperty action is complementary to the jsp:setProperty action and is used to access the properties of a bean. It accesses the value of a property, converts it to a String, and prints it to the output stream.

To convert the property to a String, the toString() method is invoked on the property value if it is an object, or it is converted directly if it is a primitive value, just like Java's System.out.println() method.

        <jsp:getProperty name=" name" property=" propertyName" />

Example

        <jsp:getProperty name="help" property="word"/> </b><br>

name |
The name of the bean instance from which the property is obtained. The bean must already have been found or created using <jsp:useBean>.

property |
The name of the property to retrieve.