请大家支个招!下面这些语句好像在运行的时候有问题,但没有任何语法错误,请大家帮忙看看
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();
}