数据读不出来,没有任何错误提示,这个问题,我该通过怎样的方式解决了?

解决方案 »

  1.   

     <table width="546" height="241" border="0">
        <tr>
          <td height="23" colspan="3"><span class="STYLE1">新闻列表</span></td>
          </tr>
          <%
          NewsDao newsDao=new NewsDao();
          List<News> list=newsDao.getAllNews();
          if(list.size()!=0)
          {
          for(int i=0;i<list.size();i++)
          {
           News news=(News) list.get(i);
           %>
        <tr>
          <td width="63"><%=news.getNewsId() %></td>
          <td width="329"><%=news.getTitle() %></td>
          <td width="132">&nbsp;</td>
        </tr>
        <%
        }
        }
         %>
      </table>
    在页面读取数据库的信息,读不出来,页面显示空白
    运行后的控制台如下:2011-6-24 13:45:17 org.apache.catalina.core.AprLifecycleListener init
    信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;C:\Program Files\Genuitec\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_8.5.0.me201003121946\tomcat\bin
    2011-6-24 13:45:17 org.apache.coyote.http11.Http11Protocol init
    信息: Initializing Coyote HTTP/1.1 on http-8080
    2011-6-24 13:45:17 org.apache.catalina.startup.Catalina load
    信息: Initialization processed in 501 ms
    2011-6-24 13:45:17 org.apache.catalina.core.StandardService start
    信息: Starting service Catalina
    2011-6-24 13:45:17 org.apache.catalina.core.StandardEngine start
    信息: Starting Servlet Engine: Apache Tomcat/6.0.13
    2011-6-24 13:45:19 org.apache.coyote.http11.Http11Protocol start
    信息: Starting Coyote HTTP/1.1 on http-8080
    2011-6-24 13:45:19 org.apache.jk.common.ChannelSocket init
    信息: JK: ajp13 listening on /0.0.0.0:8009
    2011-6-24 13:45:19 org.apache.jk.server.JkMain start
    信息: Jk running ID=0 time=0/78  config=null
    2011-6-24 13:45:19 org.apache.catalina.startup.Catalina start
    信息: Server startup in 1413 ms
      

  2.   

    数据没有加载进来list.size()=0
      

  3.   

    我怎么感觉你的TOMCAT根本就没起来。不是JSP问题,是你的环境配置问题
      

  4.   

    看看这个吧:http://blog.csdn.net/ning313180989/archive/2010/03/10/5366832.aspx
      

  5.   

    <td height="23" colspan="3"><span class="STYLE1">新闻列表</span></td>
    这里都没有显示出来,有以下几种可能:
    1:根本没有执行这个页面
    2:在执行新闻列表就出错了
      

  6.   

    The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;C:\Program Files\Genuitec\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_8.5.0.me201003121946\tomcat\bin这是什么意思?environments was not found on the java.library.path: C:\Program