JspWriter out = pageContext.getOut();
        HttpSession session = pageContext.getSession();
try
{ String strSql=(String)session.getAttribute(Constants.SQLSTMT_KEY);
Vector addressBookBeans=AddressBookBean.search(strSql);                out.println("<table border=\"2\" cellspacing=\"0\" cellpadding=\"0\">");
                out.println("<tr>");
                out.println("<th BGCOLOR=\"#00FF00\"><b>Name</b></th>");
                out.println("<th BGCOLOR=\"#00FF00\"><b>Phone<b></th>");
                out.println("<th BGCOLOR=\"#00FF00\"><b>Address</b></th>");
                out.println("</tr>");                for(int i=0;i<addressBookBeans.size();i++)
                {
                        AddressBookBean bean=(AddressBookBean)addressBookBeans.elementAt(i);
                        out.println("<tr>");
                        out.println("<td>"+ bean.getName() + "</td>");
                        out.println("<td>"  +bean.getPhone() + "</td>");
                        out.println("<td>"+bean.getAddress()+"</td>");
                }                out.println("</table>");
  }catch (Exception ex)
{
  throw new JspTagException("IOException:" + ex.toString());
}
  return super.doEndTag();
}