<%@ page contentType="text/html; charset=GBK" %> <%@ page errorPage="/exception.jsp" %> <%@ page import="teacherclub.blog.BlogBean"%> <%@ page import="teacherclub.util.PageData"%> <%@ page import="teacherclub.blog.BlogInfo"%> <%@ page import="teacherclub.blog.ArticleInfo"%> <%@ page import="teacherclub.util.Common"%> <%@ page import="java.util.*"%> <% int countPerPage = 5; String path = request.getContextPath(); String blogOwner = "WR%"; String CID = "00001"; int iPage = Common.null2Int(request.getParameter("Page")); PageData pageData = new PageData(); List list = new ArrayList(); try{ BlogBean blogBean = new BlogBean(CID); blogBean.setPageNo(iPage); list = blogBean.getLastArticleList(blogOwner,countPerPage); } catch(Exception e){ throw new Exception ("无法找到该BLOG的文章列表"); } %> 无标题文档
      最新博文:
  • <%try {ArticleInfo articleInfo = (ArticleInfo)list.get(0);out.println("" + articleInfo.getTitle() + "");}catch (Exception e) {out.println("&nbsp;");}%>
  • <%try {ArticleInfo articleInfo = (ArticleInfo)list.get(1);out.println("" + articleInfo.getTitle() + "");}catch (Exception e) {out.println("&nbsp;");}%>
  • <%try {ArticleInfo articleInfo = (ArticleInfo)list.get(2);out.println("" + articleInfo.getTitle() + "");}catch (Exception e) {out.println("&nbsp;");}%>
  • <%try {ArticleInfo articleInfo = (ArticleInfo)list.get(3);out.println("" + articleInfo.getTitle() + "");}catch (Exception e) {out.println("&nbsp;");}%>
  • <%try {ArticleInfo articleInfo = (ArticleInfo)list.get(4);out.println("" + articleInfo.getTitle() + "");}catch (Exception e) {out.println("&nbsp;");}%>
    更多>>