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

📄 index_jsp.java

📁 一个新闻查询系统 Jsp+MySql
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.io.*;
import java.util.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import news.database.*;
import news.news.*;
import news.util.*;
import news.admin.*;

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

  public String getServletInfo() {
    return "database handler";
  }

  private static java.util.Vector _jspx_dependants;

  static {
    _jspx_dependants = new java.util.Vector(3);
    _jspx_dependants.add("/inc/incdb.jsp");
    _jspx_dependants.add("/inc/common.jsp");
    _jspx_dependants.add("/foot.jsp");
  }

  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,
      			null, 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');
      out.write('\n');
      out.write("<!--¿ªÊ¼µ¼Èëpackages-->\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<!--µ¼Èë½áÊø-->\r\n");

String title = "ÐÂÎŹÜÀíϵͳ";
String placebgcolor = "#EEEEEE";

String tablebgcolor = "#336699";
String trbgcolor = "#336699";
String tdbgcolor = "#FFFFFF";

String tablebgcolor2 = "#6699CC";
String trbgcolor2 = "#EEEEEE";
String trbgcolor3 = "#FFFFFF";
String tdbgcolor2 = "#6699CC";
String tdbgcolor3 = "#DDDDDD";
String tdbgcolor4 = "#EEEEEE";
String tablewidth = "96%";
String tablewidth2 = "94%";


      out.write('\r');
      out.write('\n');
      out.write("\r\n");
      out.write("<HTML><HEAD><TITLE>");
      out.print(title);
      out.write("</TITLE>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
      out.write("<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">\r\n");
      out.write("<META HTTP-EQUIV=\"Cache-Control\" CONTENT=\"no-cache\">\r\n");
      out.write("<LINK href=\"css/css.css\" rel=stylesheet type=text/css>\r\n");
      out.write("</HEAD>\r\n");
      out.write("<BODY bgColor=#ffffff leftMargin=0 text=#000000 topMargin=0>\r\n");
      out.write("<script Language=\"JavaScript\">\r\n");
      out.write("<!--\r\n");
      out.write("function isspacestring(mystring)\r\n");
      out.write("{ var istring=mystring;\r\n");
      out.write("  var temp,i,strlen;\r\n");
      out.write("  temp=true;\r\n");
      out.write("  strlen=istring.length;\r\n");
      out.write("  for (i=0;i<strlen;i++)\r\n");
      out.write("  {\r\n");
      out.write("    if ((istring.substring(i,i+1)!=\" \")&(temp))\r\n");
      out.write("     { temp=false;  }\r\n");
      out.write("  }\r\n");
      out.write(" return temp;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function firstisspace(mystring)\r\n");
      out.write("{ var istring=mystring;\r\n");
      out.write("  var temp,i,strlen;\r\n");
      out.write("  temp=false;\r\n");
      out.write("    if (istring.substring(0,1)==\" \")\r\n");
      out.write("     { temp=true;  }\r\n");
      out.write(" return temp;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function check_input(theForm)\r\n");
      out.write("{\r\n");
      out.write("\r\n");
      out.write("   if ((theForm.content.value == \"\")|(firstisspace(theForm.content.value)))\r\n");
      out.write("  {\r\n");
      out.write("    alert(\"请输入查询的条件.不能以空格开头\");\r\n");
      out.write("    theForm.content.focus();\r\n");
      out.write("    return (false);\r\n");
      out.write("  }\r\n");
      out.write("\r\n");
      out.write("  if ((theForm.content.value == \"\")|(isspacestring(theForm.content.value)))\r\n");
      out.write("  {\r\n");
      out.write("    alert(\"请输入查询的条件.\");\r\n");
      out.write("    theForm.content.focus();\r\n");
      out.write("    return (false);\r\n");
      out.write("  }\r\n");
      out.write("}\r\n");
      out.write("//-->\r\n");
      out.write("</script>\r\n");
      out.write("<CENTER>\r\n");
      out.write("<TABLE border=0 cellPadding=0 cellSpacing=0 height=81 width=776>\r\n");
      out.write("  <TBODY>\r\n");
      out.write("  <TR>\r\n");
      out.write("    <TD width=776>\r\n");
      out.write("      <TABLE border=0 cellPadding=0 cellSpacing=0 width=\"100%\">\r\n");
      out.write("        <TBODY>\r\n");
      out.write("        <TR>\r\n");
      out.write("          <TD background=\"img/index/b-banner.jpg\" height=\"83\" width=\"100%\"><IMG SRC=\"img/index/ban.jpg\" WIDTH=\"340\" HEIGHT=\"83\" BORDER=\"0\"></TD>\r\n");
      out.write("\t\t\t\t</TR>\r\n");
      out.write("        <TR>\r\n");
      out.write("          <TD height=23>\r\n");
      out.write("            <TABLE border=0 cellPadding=0 cellSpacing=0 class=font-12 height=\"100%\" width=\"100%\" background=\"img/index/nav1.jpg\">\r\n");
      out.write("              <TBODY>\r\n");
      out.write("              <TR>\r\n");
      out.write("                <TD align=middle width=50><A class=w href=\"index.jsp\">首   页</A></TD>\r\n");
      out.write("                ");
	Vector listclass = new Vector();
								DispClass dispclass = new DispClass();
								listclass = dispclass.allClass();
								for(int i=0;i<listclass.size();i++) {
								IClass classinfo = (IClass)listclass.elementAt(i);	
      out.write("\r\n");
      out.write("                <TD align=middle width=50><A class=w href=\"list.jsp?id=");
      out.print(classinfo.getID());
      out.write('"');
      out.write('>');
      out.print(classinfo.getName());
      out.write("</A></TD>\r\n");
      out.write("\t\t\t\t\t\t\t\t");
}
      out.write("\r\n");
      out.write("                </TR></TBODY></TABLE></TD>\r\n");
      out.write("\t\t\t\t\t\t\t</TR>\r\n");
      out.write("\t\t\t\t\t\t\t</TBODY>\r\n");
      out.write("\t\t\t\t\t\t</TABLE>\r\n");
      out.write("\t\t\t\t\t</TD>\r\n");
      out.write("\t\t\t\t</TR>\r\n");
      out.write("\t\t\t\t</TBODY>\r\n");
      out.write("\t\t</TABLE>\r\n");
      out.write("<TABLE border=0 cellPadding=0 cellSpacing=0 height=26 width=776>\r\n");
      out.write("  <TBODY>\r\n");
      out.write("  <TR>\r\n");
      out.write("    <TD background=\"img/index/nav.jpg\" vAlign=center>\r\n");
      out.write("      <TABLE align=center border=0 cellPadding=0 cellSpacing=0\r\n");

⌨️ 快捷键说明

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