@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; }
@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; }