|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.displaytag.util.LookupUtil
Utility class with methods for object and properties retrieving.
| Method Summary | |
static java.lang.Object |
getBeanProperty(java.lang.Object bean,
java.lang.String name)
Returns the value of a property in the given bean. |
static java.lang.Object |
getBeanValue(javax.servlet.jsp.PageContext pageContext,
java.lang.String beanAndPropertyName,
int scope)
Read an object from the pagecontext with the specified scope and eventually lookup a property in it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static java.lang.Object getBeanValue(javax.servlet.jsp.PageContext pageContext,
java.lang.String beanAndPropertyName,
int scope)
throws ObjectLookupException
pageContext - PageContextbeanAndPropertyName - String expression with bean name and attributesscope - One of the following values:
ObjectLookupException - for errors while retrieving a property in the bean
public static java.lang.Object getBeanProperty(java.lang.Object bean,
java.lang.String name)
throws ObjectLookupException
Returns the value of a property in the given bean.
This method is a modificated version from commons-beanutils PropertyUtils.getProperty(). It allows intermediate
nulls in expression without throwing exception (es. it doesn't throw an exception for the property
object.date.time if date is null)
bean - javabeanname - name of the property to read from the javabean
ObjectLookupException - for errors while retrieving a property in the bean
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||