|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.alphadisplaytag.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 | ||||||||||
My Home Page. Contact me at: chauvetp@hotmail.com.
I am alway looking for Java/J2EE work and would appreciate the business.
Some of my design is inspired by the original display tag <display:*> code.
Please go to http://displaytag.sourceforge.net/ for details
on the <display:*> tag.
Copyright © 2004 Aiki Innovations Inc. Permission is granted to reuse and distribute for commercial or personal use if no extensive monetary gain is received. Java and the Java Standard Tag Library are programming languages owed by Sun Microsystems, Inc: http://java.sun.com/products/jsp/jstl/