[Top] [Prev] [Next] [Bottom]

<jsp:getProperty>

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

JSP 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



[Top] [Prev] [Next] [Bottom]

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