1 22 23 package de.laures.cewolf.taglib.tags; 24 25 import javax.servlet.jsp.JspException ; 26 27 import de.laures.cewolf.ChartPostProcessor; 28 import de.laures.cewolf.taglib.util.PageUtils; 29 30 35 public class ChartPostProcessorTag extends AbstractParameterizedObjectTag { 36 37 public int doEndTag() throws JspException { 38 ChartPostProcessor pp = null; 39 try { 40 pp = (ChartPostProcessor)getObject(); 41 if (pp == null) { 42 throw new JspException ("Could not find ChartEnhanncer under ID '" + getId() + "'"); 43 } 44 } catch (ClassCastException cce) { 45 throw new JspException ("Bean under ID '" + getId() + "' is of type '" 46 + pp.getClass().getName() + 47 "'.\nType expected:" + ChartPostProcessor.class.getName()); 48 } 49 AbstractChartTag rt = (AbstractChartTag)PageUtils.findRoot(this, pageContext); 50 rt.addChartPostProcessor((ChartPostProcessor)getObject(), getParameters()); 51 return doAfterEndTag(EVAL_PAGE); 52 } 53 54 } 55 | Popular Tags |