日期:2014-05-17  浏览次数:20929 次

用List没有值出来 不知具体哪里出问题? 求解
这是订单的页面
JScript code

<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage=""%>
<%@ page import="com.wgh.DB.connDB"%>
<%@ page import="com.wgh.DB.chStr"%>
<%@page import="commerce.*"%>
<%@page import="java.util.*"%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%
    final int PAGE_SIZE = 10;    
    
    //显示10条记录
    final int pagesizetime = 10; //每次显示的页码连接
    int pageNo = 1;        //页数
    String strPageNo = request.getParameter("pageNo");
    if (strPageNo != null && !strPageNo.trim().equals("")){
        try {
            pageNo = Integer.parseInt(strPageNo);
        } catch(NumberFormatException e){
            pageNo = 1;
        }
    }
    if(pageNo <= 0 )
        pageNo = 1;
 %>
<%
    connDB conn = new connDB();
    chStr chStr = new chStr();
    List<Order> orders = new ArrayList<Order>();
    int totalRecords = OrderMgr.getIntance().getOrders(orders,pageNo,PAGE_SIZE);      //总记录
    int totalPages = (totalRecords + PAGE_SIZE -1) / PAGE_SIZE;                        //总页数
    
    if(pageNo > totalPages) 
        pageNo = totalPages;
    
%>
<html>
    <head>
        <title>后台管理</title>
        <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
        <link href="../CSS/style.css" rel="stylesheet">
    </head>

    <body onLoad="clockon(bgclock)">
        <table width="777" height="192" border="0" align="center"
            cellpadding="0" cellspacing="0" class="tableBorder">
            <tr>
                <td>
                    <jsp:include page="banner.jsp" />
                    <table width="777" height="288" border="0" align="center"
                        cellpadding="0" cellspacing="0">
                        <tr>
                            <td width="182" valign="top">
                                <table width="100%" height="431" border="0" cellpadding="0"
                                    cellspacing="0">
                                    <tr>
                                        <td valign="top" background="../images/manage_02.gif"><jsp:include
                                                page="navigation.jsp" /></td>
                                    </tr>
                                </table>
                            </td>
                            <td align="center" valign="top">
                                <table width="100%" height="120" border="0" cellpadding="0"
                                    cellspacing="0">
                                    <tr>
                                        <td valign="top"
                                            background="../images/manage_center_orderlist.gif">
                                            <table width="100%" height="36" border="0" cellpadding="0"
                                                cellspacing="0">