Name

<jsp:getProperty>

Synopsis

The <jsp:getProperty> action adds the value of a bean property, converted to a string, to the response generated by the page.

Syntax

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

Attributes

Attribute name

Java type

Dynamic value accepted

Description

name
String

No

The name assigned to a bean in one of the JSP scopes.

property
String

No

The name of the bean’s property to include in the page.

Example

<jsp:getProperty name="clock" property="hours" />

Get JavaServer Pages, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.