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

📄 index1_jsp.java

📁 一个小公司要求给写的很简单的任务管理系统。
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
package org.apache.jsp.event.newssc;

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

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

  private static java.util.Vector _jspx_dependants;

  static {
    _jspx_dependants = new java.util.Vector(2);
    _jspx_dependants.add("/WEB-INF/tld/struts-html.tld");
    _jspx_dependants.add("/WEB-INF/tld/c.tld");
  }

  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_if_test;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_form_method_action;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_forEach_varStatus_var_items;

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

  public void _jspInit() {
    _jspx_tagPool_c_if_test = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _jspx_tagPool_html_form_method_action = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _jspx_tagPool_c_forEach_varStatus_var_items = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _jspx_tagPool_c_if_test.release();
    _jspx_tagPool_html_form_method_action.release();
    _jspx_tagPool_c_forEach_varStatus_var_items.release();
  }

  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\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n");
      out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\" />\r\n");
      out.write("<META content=\"all\" name=\"robots\">\r\n");
      out.write("<META content=\"http://www.xjflcp\" name=\"author\">\r\n");
      out.write("<META content=\"新疆福利彩票网\" name=\"copyright\">\r\n");
      out.write("\r\n");
      out.write("<META content=\"新疆时时彩由新疆福彩中心发行,10分钟一期,每天下午16:00―2:00总共开奖60期,即时开奖。最刺激的彩票玩法.时时彩在线投注心让你足不出户玩赚时时彩\" name=\"description\">\r\n");
      out.write("\r\n");
      out.write("<META content=\"新疆时时彩,时时彩,五星,四星,三星,二星,一星,二星和值,三星和值,复选,时时彩网上投注,时时彩开奖信息\" name=\"keywords\">\r\n");
      out.write("\r\n");
      out.write("<META content=\"www.Xjflcp.com - 新疆福利彩票网\" name=\"DC.title\">\r\n");
      out.write("<script  src=\"/ssc/sscjs/score.js\"></script>\r\n");
      out.write("<script language=\"javascript\" src=\"/js/http.js\" ></script>\r\n");
      out.write("<script language=\"javascript\">\r\n");
      out.write("function checkForm(){\r\n");
      out.write("\treturn true;\r\n");
      out.write("}\r\n");
      out.write("\tfunction decideNowTime(){\t\t\r\n");
      out.write("\t\tvar date = new Date();\r\n");
      out.write("\t\tvar hh = date.getHours(); \r\n");
      out.write("\t\tif(parseInt(hh)>=14 && parseInt(hh)<=2){\t\t\t\r\n");
      out.write("\t\t\tsetTimeout(\"sscTop10backServlet()\", 5*60000);\r\n");
      out.write("\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("function sscTop10backServlet() {\r\n");
      out.write("\t\tif (xmlHttp.readyState == 4) {\r\n");
      out.write("\t\t\tif (xmlHttp.status == 200) {\r\n");
      out.write("\t\t\t\tvar xmlDoc = xmlHttp.responseXML;\r\n");
      out.write("\t\t\t\t//alert(xmlDoc);\r\n");
      out.write("\t\t\t\tshowSscTopten(xmlDoc);\t\t\t\t\r\n");
      out.write("\t\t\t} \r\n");
      out.write("\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("\tfunction findSSCTop10(){//查找销售截止时间的Servlet\r\n");
      out.write("\t\tvar url = \"/servlet/sscTopTen\";\r\n");
      out.write("\t\txmlHttp.open(\"Get\", url, true);\r\n");
      out.write("\t\txmlHttp.onreadystatechange = sscTop10backServlet;\r\n");
      out.write("\t\txmlHttp.send(null);\r\n");
      out.write("\t}\r\n");
      out.write("\tfunction showSscTopten(xmlDoc){\r\n");
      out.write("\t//alert(xmlDoc.xml);\r\n");
      out.write("\tvar ssctop10=document.getElementById(\"top10\");\r\n");
      out.write("\tvar info = xmlDoc.getElementsByTagName(\"info\")[0];\r\n");
      out.write("\tif(info.getAttribute(\"flag\") =='true'){\r\n");
      out.write("\t//alert('true');\r\n");
      out.write("\tvar divcontent='<marquee scrollamount=3>最新中奖TOP10:<span class=\\\"red\\\">'+info.getAttribute(\"draw\")+'</span>期 ';\r\n");
      out.write("\tvar size=parseInt(info.getAttribute(\"orderNum\"));\r\n");
      out.write("\tfor(var i=0;i<size;i++){\r\n");
      out.write("\tvar data=xmlDoc.getElementsByTagName(\"data\")[i];\r\n");
      out.write("\tdivcontent+=data.getAttribute(\"seri\")+'、<a href=\\\"javascript:void(0);\\\" onclick=\\\"score(\\''+data.getAttribute(\"userLoginName\")+'\\');\\\">'+data.getAttribute(\"userLoginName\")+'</a> 中得奖金 <span class=\\\"red\\\">'+data.getAttribute(\"bonusOrigina\")+'</span>元 ';\t\r\n");
      out.write("\t}\r\n");
      out.write("\tdivcontent+='</marquee>';\r\n");
      out.write("\tssctop10.innerHTML=divcontent;\r\n");
      out.write("\t}else{\r\n");
      out.write("\t//alert('false');\r\n");
      out.write("\tssctop10.innerHTML='最新中奖TOP10:近两期没有用户中奖';\r\n");
      out.write("\t}\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("</script>\r\n");
      out.write("<LINK href=\"css/style.css\" type=text/css rel=stylesheet>\r\n");
      out.write("<title>新疆福利彩票 - 时时彩新玩法攻略</title>\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body onload=\"decideNowTime();findSSCTop10();\">\r\n");
      out.write("<div class=\"main\">\r\n");
      out.write("<div class=\"left\">\r\n");
      out.write("  <a href=\"http://www.xjflcp.com\" target=\"_blank\"><img src=\"img/logo.png\" alt=\"新疆福利彩票 - 新时时彩\" width=\"232\" height=\"140\"  border=\"0\"/></a>\r\n");
      out.write("\r\n");
      out.write("<div class=\"logon\">\r\n");
      if (_jspx_meth_c_if_0(_jspx_page_context))
        return;
      out.write('\r');
      out.write('\n');
      out.write(' ');
      //  c:if
      org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_if_1 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
      _jspx_th_c_if_1.setPageContext(_jspx_page_context);
      _jspx_th_c_if_1.setParent(null);
      _jspx_th_c_if_1.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${! empty xjfc_user}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
      int _jspx_eval_c_if_1 = _jspx_th_c_if_1.doStartTag();
      if (_jspx_eval_c_if_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write('\r');
          out.write('\n');
          if (_jspx_meth_c_if_2(_jspx_th_c_if_1, _jspx_page_context))
            return;
          out.write("\r\n");
          out.write("  ");
          //  c:if
          org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_if_3 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
          _jspx_th_c_if_3.setPageContext(_jspx_page_context);
          _jspx_th_c_if_3.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_if_1);
          _jspx_th_c_if_3.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${xjfc_user.userLevel == 1}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
          int _jspx_eval_c_if_3 = _jspx_th_c_if_3.doStartTag();
          if (_jspx_eval_c_if_3 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            do {
              out.write("\r\n");
              out.write(" <table width=\"210\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
              out.write("    <tr>\r\n");
              out.write("      <td width=\"48\">欢迎</td>\r\n");
              out.write("      <td width=\"95\">    \r\n");
              out.write("         ");
              out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${xjfc_user.userLoginName }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
              out.write(" </td>      \r\n");
              out.write("    </tr>\r\n");
              out.write("    <tr>\r\n");
              out.write("      <td>您还不是投注用户</td>\r\n");
              out.write("      <td> <a href=\"");
              out.print(request.getContextPath());
              out.write("/member/upgrade.do\" target=\"_blank\"><span id=\"redtop\">升级成为投注会员</span></a></td>\r\n");
              out.write("      </tr>  \r\n");
              out.write("  </table>\r\n");
              out.write("  ");
              int evalDoAfterBody = _jspx_th_c_if_3.doAfterBody();
              if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
            } while (true);
          }
          if (_jspx_th_c_if_3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
            return;
          _jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_3);
          out.write("\r\n");
          out.write("  ");
          int evalDoAfterBody = _jspx_th_c_if_1.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }

⌨️ 快捷键说明

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