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

📄 login_jsp.java

📁 一个很不错的java实现的留言本程序
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class login_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("<title>管理员登录</title>\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write("@import url(\"style.css\");\r\n");
      out.write(".style2 {\r\n");
      out.write("\tfont-size: 9pt;\r\n");
      out.write("\tcolor: #FF0000;\r\n");
      out.write("}\r\n");
      out.write(".style3 {font-size: 9pt}\r\n");
      out.write("-->\r\n");
      out.write("</style>\r\n");
      out.write("<body background=\"img/beijing.gif\">\r\n");
      out.write("<table width=\"309\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"309\">\r\n");
      out.write("<form name=\"form1\" method=\"POST\" action=\"operate_l.jsp\">\r\n");
      out.write("        <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td width=\"9%\"><img src=\"img/TT_left.gif\" width=\"37\" height=\"31\"></td>\r\n");
      out.write("                  <td width=\"82%\" valign=\"bottom\" background=\"img/TT_back.gif\" class=\"font0\"><font color=\"#FFFFFF\">管理员登录</font></td>\r\n");
      out.write("                  <td width=\"9%\"><img src=\"img/TT_r.gif\" width=\"26\" height=\"31\"></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=\"108\" valign=\"top\"> \r\n");
      out.write("              <table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"1\" class=\"tittle4\">\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td width=\"32%\" height=\"28\" align=\"center\" bgcolor=\"#F5F5F5\" class=\"font0\">用户名:</td>\r\n");
      out.write("                  <td width=\"68%\" height=\"40\" bgcolor=\"#F5F5F5\"> \r\n");
      out.write("                    <input type=\"text\" name=\"adminname\" style=\"border:1px double rgb(187,185,185);font:9pt\"></td>\r\n");
      out.write("                </tr>\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td height=\"40\" align=\"center\" bgcolor=\"#FFFFFF\" class=\"font0\">密码:</td>\r\n");
      out.write("                  <td height=\"40\" bgcolor=\"#FFFFFF\"> \r\n");
      out.write("                    <input type=\"password\" name=\"adminpassword\" style=\"border:1px double rgb(187,185,185);font:9pt\"></td>\r\n");
      out.write("                </tr>\r\n");
      out.write("                <tr bgcolor=\"#F5F5F5\"> \r\n");
      out.write("                  <td height=\"30\" colspan=\"2\" align=\"center\" valign=\"middle\"> \r\n");
      out.write("                    <input type=\"submit\" name=\"Submit\" value=\"登录\" style=\"border:1 solid #BBB9B9;background:#ffffff\" class=\"button\">\r\n");
      out.write("                     \r\n");
      out.write("<input type=\"submit\" name=\"Submit2\" value=\"取消\" style=\"border:1 solid #BBB9B9;background:#ffffff\" class=\"button\">\r\n");
      out.write("                  </td>\r\n");
      out.write("                </tr>\r\n");
      out.write("              </table>\r\n");
      out.write("            </td>\r\n");
      out.write("          </tr>\r\n");
      out.write("        </table>\r\n");
      out.write("      </form></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<p align=\"center\"><span class=\"style2\">\r\n");

/*
     巧悟留言板1.0版(JSP)                               
                                                         
     程序设计:Jorwoo                                     
                                                        
     QQ:513768                                         
     E-Mail:jorwoo@eyou.com                             
     网站:http://jorwoo.yeah.net       
*/	
if (session.getAttribute("adminname")!=null)
 out.print("您已经登陆了!"); 
 
      out.write("\r\n");
      out.write("</span> <a href=\"index.jsp\" class=\"style3\">返回首页</a></p>\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 + -