jsp:getProperty

Writes the value of a bean property as a string to the out object. The bean must be defined before you use this action.

The following example writes the name property of the user bean:

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

The syntax for this action is shown below:

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

Specifies the name of the bean instance for the property.

This action generates an exception if the bean is not found.

property

Name the property whose value you want to output.