);Р return null;Р }Р?}Р?//将帖子标题加载到下拉菜单Р<P><font face="幼圆" size="4" color="red">回帖标题:</font>Р <select name="select" >Р <%Р ArrayList<?> al = (ArrayList<?>)session.getAttribute("al2");Р Iterator<?> iter = al.iterator();Р while (iter.hasNext()) {Р LyTable ly = (LyTable) iter.next();Р %>Р <option selected><%=ly.getTitle()%></option>Р <%Р }Р %>Р </select>Р</P>Р增加版块界面及Servlet部分代码:РAdminBkbz bkbz = new AdminBkbz();Р // 这里是去增加版块界面,界面中包含显示所有版主的下拉列表,所以要从版主信息表中查出来。Р ArrayList<Banzhu> al = bkbz.findBzInfo();Р // 包查询的信息保存在session中Р request.getSession().setAttribute("al", al);Р Р response.sendRedirect("http://localhost:8080/webtest2/bkgl/addlist.jsp");Р Р//将版主信息写入ArrayListР?public ArrayList<Banzhu> findBzInfo() {Р try {Р Connection ct = AdminBkbz.getConnection();Р Р String sql = "select * from bzTable";