1 17 18 package com.finalist.jag.taglib; 19 20 21 import java.util.*; 22 23 import com.finalist.jag.*; 24 25 26 33 public abstract class TagSupport implements TagConstants { 34 35 36 private JagWriter writer = null; 37 38 39 private PageContext pageContext = null; 40 41 42 47 public TagSupport() { 48 writer = new JagTextBlockWriter(); 49 } 50 51 52 59 public void setWriter(JagWriter writer) { 60 this.writer = writer; 61 } 62 63 64 71 public void setPageContext(PageContext pageContext) { 72 this.pageContext = pageContext; 73 } 74 75 76 85 public abstract int doStartTag() throws JagException; 86 87 88 97 public int doEndTag() throws JagException { 98 return (EVAL_PAGE); 99 } 100 101 102 107 public void release() { 108 } 109 110 111 118 public JagWriter getWriter() { 119 return writer; 120 } 121 122 123 130 public PageContext getPageContext() { 131 return pageContext; 132 } 133 } | Popular Tags |