@Override public void doTag() throws JspException { boolean testValue; try { testValue = Convert.toBooleanValue(test, false); } catch (TypeConversionException ignore) { testValue = false; } if (testValue == true) { TagUtil.invokeBody(getJspBody()); } }
@Override public boolean getBoolean(Object bean, String param, boolean defaultValue) { boolean beanValue = defaultValue; if (bean != null) { try { Object value = BeanUtil.getProperty(bean, param); beanValue = Convert.toBooleanValue(value, defaultValue); } catch (Exception e) { _log.error(e, e); } } return beanValue; }