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

📄 top_jsp.java

📁 Jbuilder2006开发的严格按MVC设计模式组织开发过程
💻 JAVA
字号:
package org.apache.jsp._005fnormal;

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

public final class top_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=GBK");
      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("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<title>top</title>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("  .style2 {\r\n");
      out.write("  font-size: 12px;\r\n");
      out.write("  color: #FFFFFF;\r\n");
      out.write("  }\r\n");
      out.write("  .style3 {font-size: 12px;color: #6666FF}\r\n");
      out.write("  .style4 {font-size: 12px;color: #CCCCCC}\r\n");
      out.write("  .style5 {font-size: 12px}\r\n");
      out.write("  .STYLE6 {font-size: 9pt}\r\n");
      out.write("</style>\r\n");
      out.write("<script language=\"JavaScript\" type=\"\">\r\n");
      out.write("var timerID = null;\r\n");
      out.write("var timerRunning = false;\r\n");
      out.write("function stopclock (){\r\n");
      out.write("if(timerRunning)\r\n");
      out.write("clearTimeout(timerID);\r\n");
      out.write("timerRunning = false;}\r\n");
      out.write("function startclock () {\r\n");
      out.write("stopclock();\r\n");
      out.write("showtime();}\r\n");
      out.write("function showtime () {\r\n");
      out.write("var now = new Date();\r\n");
      out.write("var hours = now.getHours();\r\n");
      out.write("var minutes = now.getMinutes();\r\n");
      out.write("var seconds = now.getSeconds()\r\n");
      out.write("var timeValue = now.getYear()+\"年\"+(now.getMonth()+1)+\"月\"+now.getDate()+\"日\" +((hours >= 12) ? \" 下午 \" : \" 上午 \" )\r\n");
      out.write("timeValue += ((hours >12) ? hours -12 :hours)\r\n");
      out.write("timeValue += ((minutes < 10) ? \":0\" : \":\") + minutes\r\n");
      out.write("timeValue += ((seconds < 10) ? \":0\" : \":\") + seconds\r\n");
      out.write("document.all.thetime.innerHTML = timeValue;\r\n");
      out.write("timerID = setTimeout(\"showtime()\",1000);\r\n");
      out.write("timerRunning = true;}\r\n");
      out.write("</script>\r\n");
      out.write("<script language=\"javascript\" src=\"");
      out.print(request.getContextPath());
      out.write("/_normal/script/common.js\" type=\"text/javascript\"></script>\r\n");
      out.write("</head>\r\n");
      out.write("<body bgcolor=\"#FFFFFF\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" onload=\"showtime()\">\r\n");
      out.write("<table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"272\" height=\"98\" background=\"");
      out.print(request.getContextPath());
      out.write("/_normal/top_img/top2_01.jpg\" valign=\"top\">    </td>\r\n");
      out.write("    <td valign=\"top\">\r\n");
      out.write("      <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td height=\"98\" background=\"");
      out.print(request.getContextPath());
      out.write("/_normal/top_img/top2_02.jpg\">            &nbsp;\r\n");
      out.write("            <div class=\"bgcolor9 f12w STYLE6\" id=\"tbMsg\" style=\"display:none;position:absolute; top:18px; padding:6px; border:1px solid #666; width:150px; left: 436px; background-color: #F0F0F0; layer-background-color: #F0F0F0;\">\r\n");
      out.write("              <span id=\"msg\" align=\"center\">数据加载中,请稍候...</span>\r\n");
      out.write("            </div>\r\n");
      out.write("            <div align=\"center\" style=\"color:#6666FF;font:bold\"><br />\r\n");
      out.write("              <span id=\"thetime\" align=\"center\"></span></div>\r\n");
      out.write("          </td>\r\n");
      out.write("        </tr>\r\n");
      out.write("      </table>\r\n");
      out.write("    </td>\r\n");
      out.write("    <td width=\"255\" background=\"");
      out.print(request.getContextPath());
      out.write("/_normal/top_img/top2_03.jpg\">    </td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\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 + -