1 52 53 package freemarker.testcase.servlets; 54 55 import java.io.IOException ; 56 import javax.servlet.jsp.JspException ; 57 import javax.servlet.jsp.tagext.Tag ; 58 import javax.servlet.jsp.tagext.TagSupport ; 59 60 64 public class TestTag2 extends TagSupport 65 { 66 public int doStartTag() throws JspException { 67 try { 68 pageContext.getOut().println("TestTag2.doStartTag() called here"); 69 return Tag.EVAL_BODY_INCLUDE; 70 } 71 catch(IOException e) { 72 throw new JspException (e); 73 } 74 } 75 76 public int doEndTag() throws JspException { 77 try { 78 pageContext.getOut().println("TestTag2.doEndTag() called here"); 79 return Tag.EVAL_PAGE; 80 } 81 catch(IOException e) { 82 throw new JspException (e); 83 } 84 } 85 } 86 | Popular Tags |