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

📄 index_jsp.java

📁 jsp制作的一个信息管理系统源码,完整实用版
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.HashMap;
import java.sql.*;

public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=gb2312");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			"", true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      news.NewsManager myNewsManager = null;
      synchronized (_jspx_page_context) {
        myNewsManager = (news.NewsManager) _jspx_page_context.getAttribute("myNewsManager", PageContext.PAGE_SCOPE);
        if (myNewsManager == null){
          myNewsManager = new news.NewsManager();
          _jspx_page_context.setAttribute("myNewsManager", myNewsManager, PageContext.PAGE_SCOPE);
        }
      }
      out.write('\r');
      out.write('\n');
      news.NewsPicManager myNewsPicManager = null;
      synchronized (_jspx_page_context) {
        myNewsPicManager = (news.NewsPicManager) _jspx_page_context.getAttribute("myNewsPicManager", PageContext.PAGE_SCOPE);
        if (myNewsPicManager == null){
          myNewsPicManager = new news.NewsPicManager();
          _jspx_page_context.setAttribute("myNewsPicManager", myNewsPicManager, PageContext.PAGE_SCOPE);
        }
      }
      out.write("\r\n");
      out.write("\r\n");

	HashMap m = myNewsManager.getNewestPicNews();

      out.write("\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
      out.write("<title>汉语室研究所---首页</title>\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write("-->\r\n");
      out.write("</style>\r\n");
      out.write("<link href=\"main.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body background=\"images/bgbg1_04.jpg\" topmargin=\"0\">\r\n");
      out.write("<div align=\"center\">\r\n");
      out.write("  <table width=\"772\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" >\r\n");
      out.write("    <!--DWLayoutTable-->\r\n");
      out.write("    <tr> \r\n");
      out.write("      <td height=\"49\" colspan=\"3\" valign=\"top\" ><img src=\"images/web_01.jpg\" width=\"772\" height=\"49\" border=\"0\" usemap=\"#Map\"></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr> \r\n");
      out.write("      <td height=\"108\" colspan=\"3\" valign=\"top\" > <p> \r\n");
      out.write("          <object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"772\" height=\"108\">\r\n");
      out.write("            <param name=\"movie\" value=\"images/title.swf\">\r\n");
      out.write("            <param name=\"quality\" value=\"high\">\r\n");
      out.write("            <embed src=\"images/title.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"772\" height=\"108\"></embed></object>\r\n");
      out.write("        </p></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr> \r\n");
      out.write("      <td width=\"235\" rowspan=\"2\" valign=\"top\" > <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("          <!--DWLayoutTable-->\r\n");
      out.write("          <tr> \r\n");
      out.write("            <td width=\"235\" height=\"390\" valign=\"top\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"background=\"images/web2_03.jpg\">\r\n");
      out.write("                <!--DWLayoutTable-->\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td width=\"48\" height=\"23\" >&nbsp;</td>\r\n");
      out.write("                  <td width=\"157\" >&nbsp;</td>\r\n");
      out.write("                  <td width=\"30\" >&nbsp;</td>\r\n");
      out.write("                </tr>\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td height=\"300\" >&nbsp;</td>\r\n");
      out.write("                  <td valign=\"top\" ><img src=\"images/gui-leftB.gif\" width=\"157\" height=\"300\"></td>\r\n");
      out.write("                  <td >&nbsp;</td>\r\n");
      out.write("                </tr>\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td height=\"67\" >&nbsp;</td>\r\n");
      out.write("                  <td >&nbsp;</td>\r\n");
      out.write("                  <td >&nbsp;</td>\r\n");
      out.write("                </tr>\r\n");
      out.write("              </table></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr> \r\n");
      out.write("            <td height=\"220\" valign=\"top\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"background=\"images/left.jpg\">\r\n");
      out.write("                <!--DWLayoutTable-->\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td width=\"57\" height=\"63\" >&nbsp;</td>\r\n");
      out.write("                  <td width=\"120\" >&nbsp;</td>\r\n");
      out.write("                  <td width=\"58\" >&nbsp;</td>\r\n");
      out.write("                </tr>\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td height=\"20\" >&nbsp;</td>\r\n");
      out.write("                  <td valign=\"top\" ><a href=\"http://www.moe.edu.cn\" target=\"_blank\">中华人民共和国教育部</a></td>\r\n");
      out.write("                  <td >&nbsp;</td>\r\n");
      out.write("                </tr>\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td height=\"20\" ></td>\r\n");
      out.write("                  <td valign=\"top\" ><a href=\"http://www.edu.cn\" target=\"_blank\">中国教育与科研网</a></td>\r\n");
      out.write("                  <td ></td>\r\n");
      out.write("                </tr>\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td height=\"20\" ></td>\r\n");
      out.write("                  <td valign=\"top\" ><a href=\"http://www.chedu.com\" target=\"_blank\">中华教育信息网</a></td>\r\n");
      out.write("                  <td ></td>\r\n");
      out.write("                </tr>\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td height=\"20\" ></td>\r\n");
      out.write("                  <td valign=\"top\" ><a href=\"http://www.cass.net.com\" target=\"_blank\">中国社会科学院</a></td>\r\n");
      out.write("                  <td ></td>\r\n");
      out.write("                </tr>\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td height=\"20\" ></td>\r\n");
      out.write("                  <td valign=\"top\" ><a href=\"http://www.bjpopss.gov.cn\" target=\"_blank\">北京社科规划网</a></td>\r\n");
      out.write("                  <td ></td>\r\n");
      out.write("                </tr>\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td height=\"20\" ></td>\r\n");
      out.write("                  <td valign=\"top\" ><span class=\"flashword\"><a href=\"http://www.sinoss.com\" target=_blank>人文社科信息网</a></span></td>\r\n");
      out.write("                  <td ></td>\r\n");
      out.write("                </tr>\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td height=\"20\" ></td>\r\n");
      out.write("                  <td valign=\"top\" ><a href=\"#\">语言学网站列表</a></td>\r\n");
      out.write("                  <td ></td>\r\n");
      out.write("                </tr>\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td height=\"17\" ></td>\r\n");
      out.write("                  <td ></td>\r\n");
      out.write("                  <td ></td>\r\n");
      out.write("                </tr>\r\n");
      out.write("              </table></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr> \r\n");
      out.write("            <td height=\"82\" valign=\"top\" background=\"images/web_17.jpg\">&nbsp;&nbsp;&nbsp;&nbsp; \r\n");
      out.write("              <span class=\"3\">&nbsp;&nbsp; </span> </td>\r\n");
      out.write("          </tr>\r\n");
      out.write("        </table></td>\r\n");
      out.write("      <td height=\"690\" colspan=\"2\" valign=\"top\" ><table background=\"images/bg.jpg\" width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("          <!--DWLayoutTable-->\r\n");
      out.write("          <tr> \r\n");
      out.write("            <td width=\"10\" height=\"31\" ></td>\r\n");
      out.write("            <td width=\"512\" valign=\"top\" ><img src=\"images/web_06.jpg\" width=\"511\" height=\"31\"></td>\r\n");
      out.write("            <td width=\"7\" >&nbsp;</td>\r\n");
      out.write("            <td width=\"8\" >&nbsp;</td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr> \r\n");
      out.write("            <td height=\"66\" ></td>\r\n");
      out.write("            <td valign=\"top\" ><table background=\"images/web_08.jpg\"width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("                <!--DWLayoutTable-->\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td width=\"15\" height=\"66\" >&nbsp;</td>\r\n");
      out.write("                  <td width=\"252\" valign=\"top\" ><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("                      <!--DWLayoutTable-->\r\n");
      out.write("                      <tr> \r\n");
      out.write("                        <td width=\"17\" height=\"11\"></td>\r\n");
      out.write("                        <td width=\"55\" rowspan=\"3\" valign=\"top\"><br> <span class=\"1\"><strong> \r\n");
      out.write("                          <img src=\"images/spacer.gif\" width=\"1\" height=\"1\"> 内容:</strong></span><br> \r\n");
      out.write("                          <span class=\"1\"><strong><img src=\"images/spacer.gif\" width=\"1\" height=\"18\"> \r\n");
      out.write("                          范围:</strong></span> </td>\r\n");
      out.write("                        <td width=\"9\"></td>\r\n");
      out.write("                        <td width=\"113\"></td>\r\n");
      out.write("                        <td width=\"23\"></td>\r\n");
      out.write("                        <td width=\"3\" rowspan=\"3\" valign=\"top\" background=\"images/line.gif\"><!--DWLayoutEmptyCell-->&nbsp;</td>\r\n");
      out.write("                        <td width=\"32\"></td>\r\n");
      out.write("                        <form name=\"form1\" method=\"post\" action=\"\">\r\n");
      out.write("                        </form>\r\n");
      out.write("                      </tr>\r\n");
      out.write("                      <tr> \r\n");
      out.write("                        <td height=\"48\"></td>\r\n");
      out.write("                        <td></td>\r\n");
      out.write("                        <td valign=\"top\"> <input name=\"textfield\" type=\"text\" class=\"biao\" style=\"WIDTH: 80px\" > \r\n");
      out.write("                          <select name=\"select\" class=\"biao\" style=\"WIDTH: 60px\" >\r\n");
      out.write("                          </select> <input name=\"Submit\" type=\"submit\" class=\"biao\" value=\"检索\"> \r\n");
      out.write("                        </td>\r\n");
      out.write("                        <td>&nbsp;</td>\r\n");
      out.write("                        <td>&nbsp;</td>\r\n");
      out.write("                      </tr>\r\n");
      out.write("                      <tr> \r\n");
      out.write("                        <td height=\"7\"></td>\r\n");

⌨️ 快捷键说明

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