1 package net.sf.uitags.util; 2 3 4 import javax.servlet.jsp.JspException ; 5 6 15 public final class PropertyUtils { 16 19 private PropertyUtils() { 20 super(); 21 } 22 23 32 public static Object getSimpleProperty(Object bean, String propertyName) 33 throws JspException { 34 try { 35 return org.apache.commons.beanutils.PropertyUtils.getSimpleProperty( 36 bean, propertyName); 37 } 38 catch (Exception e) { 39 throw new JspException (e); 40 } 41 } 42 43 52 public static Object getProperty(Object bean, String propertyName) 53 throws JspException { 54 try { 55 return org.apache.commons.beanutils.PropertyUtils.getProperty( 56 bean, propertyName); 57 } 58 catch (Exception e) { 59 throw new JspException (e); 60 } 61 } 62 } 63 | Popular Tags |