예제 #1
0
 @Override
 public int doEndTag() throws JspException {
   JspWriter out = this.pageContext.getOut();
   try {
     out.write("tag ended!!!");
     out.write(book.toString() + "end");
   } catch (IOException e) {
     e.printStackTrace();
   }
   return EVAL_PAGE;
 }
예제 #2
0
 @Override
 public int doStartTag() throws JspException {
   JspWriter out = this.pageContext.getOut();
   try {
     out.write("tag started!!!");
     out.write(book.toString());
   } catch (IOException e) {
     e.printStackTrace();
   }
   return EVAL_BODY_INCLUDE;
 }