81,094
社区成员
发帖
与我相关
我的任务
分享
UserDaoImpl usdoim =new UserDaoImpl();
List allList = usdoim.querAll();
if(allList !=null&&allList .size()>0){
Iterator iter = allList.iterator() ;
while(iter.hasNext())
{
User user = (User)iter.next() ;
// 进行循环打印,打印出所有的内容,以表格形式
// 从数据库中取出内容
out.write(" \r\n");
out.write(" <h1>");
94 out.print(user.getUserId() );
out.write(" </h1> \r\n");
out.write(" <h1> ");
out.print(user.getUserName() );
out.write(" </h1> \r\n");
out.write(" <h1> ");
out.print(user.getUserPwd() );
out.write(" </h1> \r\n");
out.write(" <h1> ");
out.print(user.getUserQx() );
out.write(" </h1> \r\n");
out.write(" ");
}
out.write(" \r\n");
out.write("\r\n");
out.write(" \r\n");
out.write(" </body>\r\n");
out.write(" </html>\r\n");