⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index_jsp.java

📁 新闻网络中心 sql2000 jsp tomcat
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
if(lawNumber==0){
      out.write("<div align=\"center\"><br>暂无</div>");
}else{
      out.write("\r\n\t\t<br>  <table width=\"234\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n            ");

           for(int law=0;law<lawNumber;law++){
             NewsForm lawForm=(NewsForm)lawList.get(law);
             
      out.write("\r\n           <tr >\r\n             <td width=\"77\" height=\"25\"><strong><a href=\"newsAction.do?method=frontSelectSmallSortAction&sortId=");
      out.print(lawForm.getSortId());
      out.write("&bigSort=");
      out.print(lawForm.getBigSort());
      out.write("&image=law\">[");
      out.print(sortDao.selectSortName(lawForm.getSortId()));
      out.write("]</a></strong></td>\r\n             <td width=\"115\"><a href=\"newsAction.do?method=frontSelectOneAction&id=");
      out.print(lawForm.getId());
      out.write('"');
      out.write('>');
      out.print(lawForm.getTitle());
      out.write("</a></td>\r\n             <td width=\"42\">\r\n             ");
if(lawForm.getCreateTime().equals(time.cuttentMonthDate())){
      out.write("\r\n              <img src=\"fImage/new.gif\">");
}else{
      out.write("\r\n               ");
      out.print(lawForm.getCreateTime());
      out.write("\r\n             ");
}
      out.write("\r\n             </td>\r\n           </tr>\r\n           ");
}
      out.write("\r\n         </table>\r\n\t\t ");
}
      out.write("<br></td>\r\n         <td width=\"296\" valign=\"top\">\r\n\r\n\t\t \t\t   ");

         List scienceList=newsDao.selectNews("科学教育");
         int scienceNumber=scienceList.size();
         if(scienceNumber>5){scienceNumber=5;}
         
      out.write("\r\n\t\t  ");
if(scienceNumber==0){
      out.write("<div align=\"center\"><br>暂无</div>");
}else{
      out.write("\r\n\r\n\t\t<br>    <table width=\"234\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n         ");

           for(int science=0;science<scienceNumber;science++){
             NewsForm scienceForm=(NewsForm)scienceList.get(science);
             
      out.write("\r\n           <tr >\r\n           <td width=\"77\" height=\"25\"><strong><a href=\"newsAction.do?method=frontSelectSmallSortAction&sortId=");
      out.print(scienceForm.getSortId());
      out.write("&bigSort=");
      out.print(scienceForm.getBigSort());
      out.write("&image=science\">[");
      out.print(sortDao.selectSortName(scienceForm.getSortId()));
      out.write("]</a></strong></td>\r\n             <td width=\"115\"><a href=\"newsAction.do?method=frontSelectOneAction&id=");
      out.print(scienceForm.getId());
      out.write('"');
      out.write('>');
      out.print(scienceForm.getTitle());
      out.write("</a></td>\r\n             <td width=\"42\">\r\n             ");
if(scienceForm.getCreateTime().equals(time.cuttentMonthDate())){
      out.write("\r\n              <img src=\"fImage/new.gif\">");
}else{
      out.write("\r\n               ");
      out.print(scienceForm.getCreateTime());
      out.write("\r\n             ");
}
      out.write("\r\n             </td>\r\n           </tr>\r\n           ");
}
      out.write("\r\n         </table>\r\n\t\t ");
}
      out.write("\r\n\r\n\r\n\t\t <br></td>\r\n       </tr>\r\n     </table></td>\r\n    </tr>\r\n   <tr>\r\n     <td height=\"225\">\r\n\r\n\t   <table width=\"584\" height=\"228\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"fImage/rightThree.jpg\">\r\n       <tr>\r\n         <td height=\"42\"><table width=\"262\" height=\"30\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n           <tr>\r\n             <td width=\"131\" height=\"23\">&nbsp;</td>\r\n             <td width=\"134\"><div align=\"right\"><strong><a href=\"newsAction.do?method=frontSelectBigSortAction&bigSort=社会现象&image=society\"><font color=\"#FFFFFF\">more...</font></a></strong></div></td>\r\n           </tr>\r\n         </table></td>\r\n         <td height=\"42\"><table width=\"262\" height=\"30\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n           <tr>\r\n             <td width=\"131\" height=\"18\">&nbsp;</td>\r\n             <td width=\"134\"><div align=\"right\"><strong><a href=\"newsAction.do?method=frontSelectBigSortAction&bigSort=娱乐天地&image=fun\"><font color=\"#FFFFFF\">more...</font></a></strong></div></td>\r\n");
      out.write("           </tr>\r\n         </table></td>\r\n       </tr>\r\n       <tr>\r\n         <td width=\"293\" height=\"186\" valign=\"top\">\r\n\t\t   ");

         List societyList=newsDao.selectNews("社会现象");
         int societyNumber=societyList.size();
         if(societyNumber>5){societyNumber=5;}
         
      out.write("\r\n\t\t  ");
if(societyNumber==0){
      out.write("<div align=\"center\"><br>暂无</div>");
}else{
      out.write("\r\n\t\t  <br><table width=\"234\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n            ");

           for(int society=0;society<societyNumber;society++){
             NewsForm societyForm=(NewsForm)societyList.get(society);
             
      out.write("\r\n           <tr >\r\n              <td width=\"77\" height=\"25\"><strong><a href=\"newsAction.do?method=frontSelectSmallSortAction&sortId=");
      out.print(societyForm.getSortId());
      out.write("&bigSort=");
      out.print(societyForm.getBigSort());
      out.write("&image=society\">[");
      out.print(sortDao.selectSortName(societyForm.getSortId()));
      out.write("]</a></strong></td>\r\n             <td width=\"115\"><a href=\"newsAction.do?method=frontSelectOneAction&id=");
      out.print(societyForm.getId());
      out.write('"');
      out.write('>');
      out.print(societyForm.getTitle());
      out.write("</a></td>\r\n             <td width=\"42\">\r\n             ");
if(societyForm.getCreateTime().equals(time.cuttentMonthDate())){
      out.write("\r\n             <img src=\"fImage/new.gif\"></font>");
}else{
      out.write("\r\n               ");
      out.print(societyForm.getCreateTime());
      out.write("\r\n             ");
}
      out.write("\r\n             </td>\r\n           </tr>\r\n           ");
}
      out.write("\r\n         </table>\r\n\t\t ");
}
      out.write("\r\n\t\t <br><br><br></td>\r\n         <td valign=\"top\">\r\n         ");

         List funList=newsDao.selectNews("娱乐天地");
         int funNumber=funList.size();
         if(funNumber>5){funNumber=5;}
         
      out.write("\r\n\t\t ");
if(funNumber==0){
      out.write("<div align=\"center\"><br>暂无</div>");
}else{
      out.write("\r\n         <br>  <table width=\"234\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n           ");

           for(int fun=0;fun<funNumber;fun++){
             NewsForm funForm=(NewsForm)funList.get(fun);
             
      out.write("\r\n           <tr >\r\n             <td width=\"77\" height=\"25\"><strong><a href=\"newsAction.do?method=frontSelectSmallSortAction&sortId=");
      out.print(funForm.getSortId());
      out.write("&bigSort=");
      out.print(funForm.getBigSort());
      out.write("&image=fun\">[");
      out.print(sortDao.selectSortName(funForm.getSortId()));
      out.write("]</a></strong></td>\r\n             <td width=\"115\"><a href=\"newsAction.do?method=frontSelectOneAction&id=");
      out.print(funForm.getId());
      out.write('"');
      out.write('>');
      out.print(funForm.getTitle());
      out.write("</a></td>\r\n             <td width=\"42\">\r\n             ");
if(funForm.getCreateTime().equals(time.cuttentMonthDate())){
      out.write("\r\n              <img src=\"fImage/new.gif\">");
}else{
      out.write("\r\n               ");
      out.print(funForm.getCreateTime());
      out.write("\r\n             ");
}
      out.write("\r\n             </td>\r\n           </tr>\r\n           ");
}
      out.write("\r\n         </table>\r\n");
}
      out.write("\r\n\r\n       <br>  <br><br></td>\r\n       </tr>\r\n     </table>\r\n\r\n\t </td>\r\n    </tr>\r\n </table>\r\n ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "fBottom.jsp", out, false);
      out.write("\r\n</div>\r\n</body>\r\n</html>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -