Contents | Prev | Next


<jsp:getProperty>

Gets the value of a bean property so that you can display it in a result page.

Syntax

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

Examples

<jsp:useBean id="calendar" scope="page" class="employee.Calendar" />
<h2>
Calendar of <jsp:getProperty name="calendar" property="username" />
</h2>

Description

The <jsp:getProperty> element gets a bean property value using the property's getter methods and displays the property value in a JSP page. You must create or locate a bean with <jsp:useBean> before you use <jsp:getProperty>.

The <jsp:getProperty> element has a few limitations you should be aware of:

Attributes

Tips

See Also



Contents | Prev | Next

Copyright © 2000, Sun Microsystems, Inc. All rights reserved.