Esempio n. 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;
 }
Esempio n. 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;
 }