1 16 17 package org.apache.taglibs.scrape; 18 19 import java.util.*; 20 import javax.servlet.jsp.*; 21 import javax.servlet.jsp.tagext.*; 22 23 71 public class ScrapeTag extends TagSupport { 72 73 private String begin; 75 private String end; 77 private String anchor = "false"; 79 private String strip = "false"; 81 82 92 public final int doEndTag() throws JspException { 93 PageTag myParent = (PageTag)findAncestorWithClass(this, PageTag.class); 95 96 if(myParent==null) { 97 throw new JspException("ScrapeTag without PageTag"); 98 } else { 99 myParent.setScrape(id, begin, end, anchor, strip); 101 102 } 103 return EVAL_PAGE; 104 } 105 106 112 public final void setBegin(String begin) { 113 this.begin = begin; 114 } 115 116 121 public final void setEnd(String end) { 122 this.end = end; 123 } 124 125 131 public final void setAnchors(String anchors) { 132 anchor = anchors; 133 } 134 135 141 public final void setStrip(String strip) { 142 this.strip = strip; 143 } 144 } 145 | Popular Tags |