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

📄 index_jsp.java

📁 一个新闻查询系统 Jsp+MySql
💻 JAVA
字号:
package org.apache.jsp.admin;

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("/admin/../inc/incdb.jsp");
    _jspx_dependants.add("/admin/../inc/common.jsp");
    _jspx_dependants.add("/admin/../inc/tail.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');
      out.write('\n');

String userName = (String) session.getAttribute("userName_s");
if (userName!=null){ 
response.sendRedirect("main.jsp");
}

      out.write("\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("<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">\r\n");
      out.write("<META HTTP-EQUIV=\"Cache-Control\" CONTENT=\"no-cache\">\r\n");
      out.write("<title>欢迎光临");
      out.print(title);
      out.write("</title>\r\n");
      out.write("<link rel=\"stylesheet\" href=\"../css/news.css\" type=\"text/css\" media=\"screen\">\r\n");
      out.write("</head>\r\n");
      out.write("<body>\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.username.value == \"\")|(firstisspace(theForm.username.value)))\r\n");
      out.write("  {\r\n");
      out.write("    alert(\"请输入用户名.不能以空格开头\");\r\n");
      out.write("    theForm.username.focus();\r\n");
      out.write("    return (false);\r\n");
      out.write("  }\r\n");
      out.write("\r\n");
      out.write("  if ((theForm.password.value == \"\")|(isspacestring(theForm.password.value)))\r\n");
      out.write("  {\r\n");
      out.write("    alert(\"请输入密码.\");\r\n");
      out.write("    theForm.password.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("<BR><BR>\r\n");
      out.write("<TABLE bgColor=");
      out.print(tablebgcolor);
      out.write(" border=0 cellPadding=0 cellSpacing=1 width=60% align=CENTER>\r\n");
      out.write("\t<TR><TD align=middle background=../img/index/topback.gif height=10>\r\n");
      out.write("\t</TD></TR>\r\n");
      out.write("</TABLE>\r\n");
      out.write("<TABLE align=center border=0 cellPadding=6 cellSpacing=0 width=60% bgColor=");
      out.print(tablebgcolor);
      out.write(">\r\n");
      out.write("\t<TBODY>\r\n");
      out.write("\t<TR>\r\n");
      out.write("\t<TD bgColor=");
      out.print(tdbgcolor2);
      out.write("><FONT color=ffffff><B>=&gt; \r\n");
      out.write("\t登录入口</B><BR>\r\n");
      out.write("\t[<A href=\"lostpass.jsp\" style=\"CURSOR: help\"><FONT COLOR=\"ffffff\">忘记密码</FONT></A>]\r\n");
      out.write("\t[<A href=\"lostpass.jsp\"><FONT COLOR=\"ffffff\">返回</FONT></A>]</FONT>\r\n");
      out.write("\t</TD><TD align=right bgColor=");
      out.print(tdbgcolor2);
      out.write("></TD></TR><FORM action=chklogin.jsp method=post onsubmit=\"return check_input(this)\"><TR><TD bgColor=");
      out.print(tdbgcolor2);
      out.write(">\r\n");
      out.write("\t<IMG height=16 src=\"../img/index/home.gif\" width=16></TD>\r\n");
      out.write("\t<TD bgColor=");
      out.print(tdbgcolor2);
      out.write(">&nbsp;用户名:<INPUT maxLength=16 \r\n");
      out.write("\tname=username size=20></TD>\r\n");
      out.write("\t</TR><TR><TD bgColor=");
      out.print(tdbgcolor2);
      out.write("></TD>\r\n");
      out.write("\t<TD bgColor=");
      out.print(tdbgcolor2);
      out.write(">&nbsp;密&nbsp;  码:<INPUT maxLength=20 name=password size=20 type=password>  \r\n");
      out.write("\t<INPUT name=submit type=submit value=\"登 陆\"></TD>\r\n");
      out.write("\t</TR></FORM></TBODY>\r\n");
      out.write("</TABLE>\r\n");
      out.write("\r\n");
      out.write("<TABLE border=0 cellPadding=0 cellSpacing=0 width=\"60%\" align=center>\r\n");
      out.write("\t<TR bgColor=");
      out.print(trbgcolor2);
      out.write(">\r\n");
      out.write("\t<TD align=middle background=../img/index/botback.gif vAlign=bottom width=\"100%\">\r\n");
      out.write("\t<TABLE border=0 cellPadding=0 cellSpacing=0 width=\"100%\" align=center>\r\n");
      out.write("\t<TR>\r\n");
      out.write("\t<TD width=1><IMG border=0 height=17 hspace=0 src=\"../img/index/left.gif\" width=14></TD>\r\n");
      out.write("    <TD align=middle width=\"100%\"></TD>\r\n");
      out.write("    <TD align=right width=1><IMG border=0 height=17 hspace=0 src=\"../img/index/right.gif\"  width=14></TD>\r\n");
      out.write("\t</TR>\r\n");
      out.write("\t</TABLE>\r\n");
      out.write("\t</TD>\r\n");
      out.write("\t</TR>\r\n");
      out.write("</TABLE>\r\n");
      out.write("\r\n");
      out.write("<br>\r\n");
      out.write("<center>\r\n");
      out.write("<HR noShade SIZE=1 width=450>\r\n");
      out.write("2003.3 <FONT SIZE=\"1\" COLOR=red face=Verdana,Arial,Helvetica><B>www.pcccp.com</B></FONT><BR>\r\n");
      out.write("建议您使用 IE4.0和NETSCAPE5.0以上版本,800X600分辨率浏览<BR>\r\n");
      out.write("</body>\r\n");
      out.write("</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 + -