1 18 package net.sf.uitags.util; 19 20 import javax.servlet.jsp.JspException ; 21 22 32 public final class BeanUtils { 33 36 private BeanUtils() { 37 super(); 38 } 39 40 49 public static String getSimpleProperty(Object bean, String propertyName) 50 throws JspException { 51 try { 52 return org.apache.commons.beanutils.BeanUtils.getSimpleProperty( 53 bean, propertyName); 54 } 55 catch (Exception e) { 56 throw new JspException (e); 57 } 58 } 59 60 69 public static String getProperty(Object bean, String propertyName) 70 throws JspException { 71 try { 72 return org.apache.commons.beanutils.BeanUtils.getProperty( 73 bean, propertyName); 74 } 75 catch (Exception e) { 76 throw new JspException (e); 77 } 78 } 79 } 80 | Popular Tags |