<%
List obj = (List)request.getAttribute("redate");
//System.out.println("obj.size()======================="+obj.size());
Iterator it = obj.iterator();
//System.out.println("it================"+it);
while(it.hasNext()){
Object obje = it.next();
//System.out.println(obje);
TB_REBBSBUSINESS tb_rebbs = (TB_REBBSBUSINESS)obje;
//System.out.println("tb_rebbs==========="+tb_rebbs);
//System.out.println(tb_rebbs.getRETITLE());
%>
List obj = (List)request.getAttribute("redate");
//System.out.println("obj.size()======================="+obj.size());
Iterator it = obj.iterator();
//System.out.println("it================"+it);
while(it.hasNext()){
Object obje = it.next();
//System.out.println(obje);
TB_REBBSBUSINESS tb_rebbs = (TB_REBBSBUSINESS)obje;
//System.out.println("tb_rebbs==========="+tb_rebbs);
//System.out.println(tb_rebbs.getRETITLE());
%>
<tr>
<td colspan="2"><%=tb_rebbs.getRECONTENT()%></td>
</tr>
<td colspan="2"><%=tb_rebbs.getRECONTENT()%></td>
</tr>
<%
}
%>
}
%>
本文介绍了一段使用JSP技术实现的博客内容展示代码。该代码通过迭代器遍历一个包含博客业务对象的列表,并将每个对象的内容输出到网页上。具体实现了从请求属性中获取博客数据列表,迭代处理每个博客项并显示其内容。
1399

被折叠的 条评论
为什么被折叠?



