Gets the value of a Bean property so that you can display it in a result page.
This element retrieves the value of a bean property, converts it to a string
, and inserts it into the output.
JSP Syntax
< name="beanInstanceName" property="propertyName">
Examples
< id="calendar" scope="page" class="employee.Calendar">
<>
Calendar of < name="calendar" property="username">
< /h2>
Description
You must create or locate a Bean instance with <> before you use
<>.
The <> tag gets a Bean property value using the property's get method,
converts the value of a Bean property to a String and stores it in the out object.
In JSP 1.0, <> has a few limitations you should be aware of:
* You cannot use <> to retrieve the values of an indexed property.
* You can use <> with JavaBeans components, but not with enterprise
beans.
Monday, March 3, 2008
< jsp:getProperty>
Labels:
getProperty
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment