1 6 7 package abc; 8 9 import javax.servlet.jsp.tagext.*; 10 import javax.servlet.jsp.JspWriter ; 11 import javax.servlet.jsp.JspException ; 12 13 18 19 public class NewTagHandler extends SimpleTagSupport { 20 21 24 private java.lang.String attr; 25 26 30 public void doTag() throws JspException { 31 32 JspWriter out=getJspContext().getOut(); 33 34 try { 35 41 JspFragment f=getJspBody(); 42 if (f != null) f.invoke(out); 43 44 49 } catch (java.io.IOException ex) { 50 throw new JspException (ex.getMessage()); 51 } 52 53 } 54 55 58 public void setAttr(java.lang.String value) { 59 this.attr = value; 60 } 61 } 62 | Popular Tags |