1 13 package info.magnolia.cms.taglibs; 14 15 import javax.servlet.jsp.JspException ; 16 import javax.servlet.jsp.tagext.BodyTagSupport ; 17 18 19 23 public class LoadPagePath extends BodyTagSupport { 24 25 28 private static final long serialVersionUID = 222L; 29 30 33 public int doEndTag() throws JspException { 34 LoadPage parent = (LoadPage) findAncestorWithClass(this, LoadPage.class); 35 if (parent == null) { 36 throw new JspException ("nesting error"); } 38 String path = getBodyContent().getString(); 39 if (path != null) { 40 parent.setPath(path.trim()); 41 } 42 return EVAL_PAGE; 43 } 44 } 45 | Popular Tags |