1 23 24 package org.infoglue.deliver.taglib.content; 25 26 import javax.servlet.jsp.JspException ; 27 28 import org.infoglue.deliver.taglib.component.ComponentLogicTag; 29 30 public class BoundContentsTag extends ComponentLogicTag 31 { 32 private static final long serialVersionUID = 4050206323348354355L; 33 34 private String propertyName; 35 private boolean useInheritance = true; 36 37 38 public BoundContentsTag() 39 { 40 super(); 41 } 42 43 public int doEndTag() throws JspException 44 { 45 setResultAttribute(getComponentLogic().getBoundContents(propertyName, useInheritance)); 46 return EVAL_PAGE; 47 } 48 49 public void setPropertyName(String propertyName) throws JspException 50 { 51 this.propertyName = evaluateString("boundContents", "propertyName", propertyName); 52 } 53 54 public void setUseInheritence(boolean useInheritance) 55 { 56 this.useInheritance = useInheritance; 57 } 58 } 59 | Popular Tags |