get |
|||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description |
This tag retrieves the specified property and writes its value to the page output. | ||||||||||||||||||
Tag Body |
Empty | ||||||||||||||||||
Restrictions |
If the name |
||||||||||||||||||
Attributes |
This tag has the following attributes:
|
||||||||||||||||||
Properties |
None. |
||||||||||||||||||
Example(s) |
<%-- get the date time property from parent bean --%> <util:bean type="java.util.Date"> time = <util:get property="time"/> </util:bean> <%-- get the date time property from named bean --%> <util:bean id="date" type="java.util.Date"/> ... time = <util:get name="date" property="time"/> <%-- get the date bean itself as a string --%> <util:bean type="java.util.Date"> date = <util:get/> </util:bean> <%-- get a non-string bean property --%> <util:bean: type="Bean"> <util:get property="prop" id="handle"/> </util:bean> <%-- get an evaluated attribute --%> <util:catalog id="catalog" resource="catalog"/> <util:bean id="bean" type="java.util.Date"/> Msg = <util:get eval="$[catalog:msg]"/> Param = <util:get eval="$(requestparam)"/> Bean = <util:get eval="{bean}"/> |