JSP中如何 循环显示 数据库中的数据到list.jsp页面 (转载)

一 首先在dao层写findall方法,返回值为 要循环对象 的队列列表。查找出来全部的数据php public List<News> findall() throws Exception{ List<News> newsList=new ArrayList<News>(); try { conn=Dbinit.getConn(); pstmt=conn.prep
相关文章
相关标签/搜索