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

📄 __index.java

📁 使用J2EE实现了软件园的下载和上传功能
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/* compiled from JSP: /index.jsp
*
* This code was automatically generated at 18:56:34 on 2007-6-17
* by weblogic.servlet.jsp.Jsp2Java -- do not edit.
*/

package jsp_servlet;

import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;

// User imports
import java.io.*; //[ /index.jsp; Line: 2]import java.util.*; //[ /index.jsp; Line: 2]import javax.naming.*; //[ /index.jsp; Line: 2]import javax.rmi.*; //[ /index.jsp; Line: 2]

// built-in init parameters:
// boolean             _verbose -- wants debugging

// Well-known variables:
// JspWriter out                  -- to write to the browser
// HttpServletRequest  request    -- the request object.
// HttpServletResponse response   -- the response object.
// PageContext pageContext        -- the page context for this JSP
// HttpSession session            -- the session object for the client (if any)
// ServletContext application     -- The servlet (application) context
// ServletConfig config           -- The ServletConfig for this JSP
// Object page                    -- the instance of this page's implementation class (i.e., 'this')

/**
* This code was automatically generated at 18:56:35 on 2007-6-17
* by weblogic.servlet.jsp.Jsp2Java -- do not edit.
*
* Copyright (c) 2007 by BEA Systems, Inc. All Rights Reserved.
*/
public final class __index
extends
weblogic.servlet.jsp.JspBase
implements weblogic.servlet.jsp.StaleIndicator
{
  
  //[ /index.jsp; Line: 4]  public String codeString(String s) { //[ /index.jsp; Line: 5]    String str = s; //[ /index.jsp; Line: 6]    try { //[ /index.jsp; Line: 7]      byte b[] = str.getBytes("ISO-8859-1"); //[ /index.jsp; Line: 8]      str = new String(b); //[ /index.jsp; Line: 9]      return str; //[ /index.jsp; Line: 10]    } //[ /index.jsp; Line: 11]    catch (Exception e) { //[ /index.jsp; Line: 12]      return "error"; //[ /index.jsp; Line: 13]    } //[ /index.jsp; Line: 14]  } //[ /index.jsp; Line: 15]  //[ /index.jsp; Line: 16]  // StaleIndicator interface  public boolean _isStale() {    weblogic.servlet.jsp.StaleChecker sci =(weblogic.servlet.jsp.StaleChecker)(getServletConfig().getServletContext());    java.io.File f = null;    long lastModWhenBuilt = 0L;    if (sci.isResourceStale("/index.jsp", 1181871028000L, "8.1.4.0", "Asia/Shanghai")) return true;    if (sci.isResourceStale("/top.jsp", 1182077734000L, "8.1.4.0", "Asia/Shanghai")) return true;    if (sci.isResourceStale("/foot.jsp", 1181880966000L, "8.1.4.0", "Asia/Shanghai")) return true;    return false;  }    public static boolean _staticIsStale(weblogic.servlet.jsp.StaleChecker sci) {    java.io.File f = null;    long lastModWhenBuilt = 0L;    if (sci.isResourceStale("/index.jsp", 1181871028000L, "8.1.4.0", "Asia/Shanghai")) return true;    if (sci.isResourceStale("/top.jsp", 1182077734000L, "8.1.4.0", "Asia/Shanghai")) return true;    if (sci.isResourceStale("/foot.jsp", 1181880966000L, "8.1.4.0", "Asia/Shanghai")) return true;    return false;  }      private static void _writeText(ServletResponse rsp, JspWriter out, String block, byte[] blockBytes) throws IOException {    if (!_WL_ENCODED_BYTES_OK || _hasEncodingChanged(rsp)) {      out.print(block);    } else {      ((weblogic.servlet.jsp.ByteWriter)out).write(blockBytes, block);    }   }      private static boolean _hasEncodingChanged(ServletResponse rsp) {    if (_WL_ORIGINAL_ENCODING.equals(rsp.getCharacterEncoding())) {      return false;    }    return true;  }    private static boolean _WL_ENCODED_BYTES_OK = true;    private static final String _WL_ORIGINAL_ENCODING = "GB2312";    private static byte[] _getBytes(String block) {    try {      return block.getBytes(_WL_ORIGINAL_ENCODING);    } catch (java.io.UnsupportedEncodingException u) {      _WL_ENCODED_BYTES_OK = false;    }    return null;  }  private final static String _wl_block0 = "\r\n";  private final static byte[] _wl_block0Bytes = _getBytes(_wl_block0);  private final static String _wl_block1 = "\r\n";  private final static byte[] _wl_block1Bytes = _getBytes(_wl_block1);  private final static String _wl_block2 = "\r\n<center>\r\n  <table width=\"770\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n    <tr>\r\n      <td>\r\n        <img src=\"images/top.gif\" width=\"770\" height=\"114\" alt=\"\">\r\n      </td>\r\n    </tr>\r\n    <tr>\r\n      <td>\r\n        <center>\r\n          <table width=\"770\" border=\"0\" align=\"center\" cellpadding=\"1\" cellspacing=\"0\">\r\n            <tr>\r\n              <td align=\"center\" class=\"bottomindex\">\r\n                <a href=\"index.jsp\"><img src=\"images/homepage.gif\" align=\"middle\" border=\"0\" alt=\"\"></a>\r\n                | <a href=class.jsp?classType=系统工具>系统工具</a>\r\n                | <a href=class.jsp?classType=书籍教程>书籍教程</a>\r\n                | <a href=class.jsp?classType=图形图像>图形图像</a>\r\n                | <a href=class.jsp?classType=多媒体类>多媒体类</a>\r\n                &nbsp; <script language=\"JavaScript\" type=\"text/JavaScript\">\r\nvar day=\"\";\r\nvar month=\"\";\r\nvar ampm=\"\";\r\nvar ampmhour=\"\";\r\nvar myweekday=\"\";\r\nvar year=\"\";\r\nmydate=new Date();\r\nmyweekday=mydate.getDay();\r\nmymonth=mydate.getMonth()+1;\r\nmyday= mydate.getDate();\r\nmyyear= mydate.getYear();\r\nyear=(myyear > 200) ? myyear : 1900 + myyear;\r\nif(myweekday == 0)\r\nweekday=\" 星期日 \";\r\nelse if(myweekday == 1)\r\nweekday=\" 星期一 \";\r\nelse if(myweekday == 2)\r\nweekday=\" 星期二 \";\r\nelse if(myweekday == 3)\r\nweekday=\" 星期三 \";\r\nelse if(myweekday == 4)\r\nweekday=\" 星期四 \";\r\nelse if(myweekday == 5)\r\nweekday=\" 星期五 \";\r\nelse if(myweekday == 6)\r\nweekday=\" 星期六 \";\r\ndocument.write(year+\"年\"+mymonth+\"月\"+myday+\"日 \"+weekday);\r\n</script>\r\n              </td>\r\n            </tr>\r\n          </table>\r\n        </center>\r\n      </td>\r\n    </tr>\r\n  </table>\r\n</center>\r\n";  private final static byte[] _wl_block2Bytes = _getBytes(_wl_block2);  private final static String _wl_block3 = "\r\n";  private final static byte[] _wl_block3Bytes = _getBytes(_wl_block3);  private final static String _wl_block4 = "\r\n\r\n<html>\r\n<head>\r\n<title>FileDownload</title>\r\n<LINK href=\"css.css\" type=\"text/css\" rel=\"stylesheet\">\r\n</head>\r\n<body>\r\n<center>\r\n  <table width=\"750\">\r\n    <tr>\r\n      <td>\r\n        <table width=\"200\">\r\n          <tr>\r\n            <td>\r\n              <table>\r\n                <tr>\r\n                  <td>\r\n                    <img alt=\"\" src=\"images/search.jpg\"/>\r\n                  </td>\r\n                </tr>\r\n                <tr>\r\n                  <td>\r\n                    <form method=\"GET\" name=form action=\"searchResult.jsp\">\r\n                    <table>\r\n                      <tr>\r\n                        <td width=\"50%\">\r\n                          <input type=text name=keyword size=\"12\" >\r\n                        </td>\r\n                        <td width=\"50%\">\r\n                          <input type=submit name=Submit value=搜索>\r\n                        </td>\r\n                      </tr>\r\n                    </table>\r\n                    </form>\r\n                  </td>\r\n                </tr>\r\n              </table>\r\n            </td>\r\n          </tr>\r\n          <tr>\r\n            <td>\r\n              <table>\r\n                <tr>\r\n                  <td>\r\n                    <img alt=\"\" src=\"images/softInfor.jpg\"/>\r\n                  </td>\r\n                </tr>\r\n                  ";  private final static byte[] _wl_block4Bytes = _getBytes(_wl_block4);  private final static String _wl_block5 = "\r\n                        <tr>\r\n                        <td>";  private final static byte[] _wl_block5Bytes = _getBytes(_wl_block5);  private final static String _wl_block6 = ":<font color=\"red\">";  private final static byte[] _wl_block6Bytes = _getBytes(_wl_block6);  private final static String _wl_block7 = "</font>个</td>\r\n                        </tr>\r\n                        ";  private final static byte[] _wl_block7Bytes = _getBytes(_wl_block7);  private final static String _wl_block8 = "\r\n                  <tr>\r\n                  <td>\r\n                    总共有<font color=\"red\">";  private final static byte[] _wl_block8Bytes = _getBytes(_wl_block8);  private final static String _wl_block9 = "</font>个资源\r\n                  </td>\r\n                </tr>\r\n              </table>\r\n            </td>\r\n          </tr>\r\n          <tr>\r\n            <td>\r\n              <table>\r\n                <tr>\r\n                  <td colspan=\"2\">\r\n                    <img alt=\"\" src=\"images/downRange.jpg\"/>\r\n                  </td>\r\n                </tr>\r\n               ";  private final static byte[] _wl_block9Bytes = _getBytes(_wl_block9);  private final static String _wl_block10 = "\r\n     <tr>\r\n     <td>\r\n      \r\n     <a href=\"software.jsp?softwareName=";  private final static byte[] _wl_block10Bytes = _getBytes(_wl_block10);  private final static String _wl_block11 = "\">";  private final static byte[] _wl_block11Bytes = _getBytes(_wl_block11);  private final static String _wl_block12 = "</a>\r\n     </td>\r\n     <td>下载<font color=\"red\">";  private final static byte[] _wl_block12Bytes = _getBytes(_wl_block12);  private final static String _wl_block13 = "</font>次</td>\r\n     </tr>\r\n     ";  private final static byte[] _wl_block13Bytes = _getBytes(_wl_block13);  private final static String _wl_block14 = "\r\n              </table>\r\n            </td>\r\n          </tr>\r\n        </table>\r\n      </td>\r\n      <td>\r\n        <table>\r\n          <tr>\r\n            <td>\r\n              <img alt=\"\" src=\"images/right.jpg\"/>\r\n            </td>\r\n          </tr>\r\n        ";  private final static byte[] _wl_block14Bytes = _getBytes(_wl_block14);  private final static String _wl_block15 = "\r\n          <tr>\r\n            <td>\r\n\r\n              <a href=\"class.jsp?classType=";  private final static byte[] _wl_block15Bytes = _getBytes(_wl_block15);  private final static String _wl_block16 = "\">[";  private final static byte[] _wl_block16Bytes = _getBytes(_wl_block16);  private final static String _wl_block17 = "]</a>\r\n              <a href=\"software.jsp?softwareName=";  private final static byte[] _wl_block17Bytes = _getBytes(_wl_block17);  private final static String _wl_block18 = "\">";  private final static byte[] _wl_block18Bytes = _getBytes(_wl_block18);  private final static String _wl_block19 = "</a>\r\n              &nbsp;&nbsp;&nbsp;&nbsp;<font color=\"#CCCCCC\">";  private final static byte[] _wl_block19Bytes = _getBytes(_wl_block19);  private final static String _wl_block20 = "</font>\r\n            </td>\r\n          </tr>\r\n        ";  private final static byte[] _wl_block20Bytes = _getBytes(_wl_block20);  private final static String _wl_block21 = "\r\n          <tr>\r\n            <td>\r\n              <a href=\"class.jsp?classType=";  private final static byte[] _wl_block21Bytes = _getBytes(_wl_block21);  private final static String _wl_block22 = "\">";  private final static byte[] _wl_block22Bytes = _getBytes(_wl_block22);  private final static String _wl_block23 = "              </a>\r\n              <a href=\"software.jsp?softwareName=";  private final static byte[] _wl_block23Bytes = _getBytes(_wl_block23);  private final static String _wl_block24 = "\">";  private final static byte[] _wl_block24Bytes = _getBytes(_wl_block24);  private final static String _wl_block25 = "              </a>\r\n            </td>\r\n          </tr>\r\n        ";  private final static byte[] _wl_block25Bytes = _getBytes(_wl_block25);  private final static String _wl_block26 = "\r\n          <tr>\r\n            <td style=\"background-image:url(\'images/soft2.jpg\');background-repeat:no-repeat;height=\'30\';width=\'400\';\" >              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n              <a href=\"class.jsp?classType=";  private final static byte[] _wl_block26Bytes = _getBytes(_wl_block26);  private final static String _wl_block27 = "\">";  private final static byte[] _wl_block27Bytes = _getBytes(_wl_block27);  private final static String _wl_block28 = "\r\n              </a>\r\n            </td>\r\n          </tr>\r\n        ";  private final static byte[] _wl_block28Bytes = _getBytes(_wl_block28);  private final static String _wl_block29 = "\r\n          <tr>\r\n            <td>\r\n              <a href=\"software.jsp?softwareName=";  private final static byte[] _wl_block29Bytes = _getBytes(_wl_block29);  private final static String _wl_block30 = "\">";  private final static byte[] _wl_block30Bytes = _getBytes(_wl_block30);  private final static String _wl_block31 = "</a>\r\n            </td>\r\n          </tr>\r\n        ";  private final static byte[] _wl_block31Bytes = _getBytes(_wl_block31);  private final static String _wl_block32 = "\r\n        </table>\r\n      </td>\r\n    </tr>\r\n  </table>\r\n</center>\r\n</body>\r\n</html>\r\n";  private final static byte[] _wl_block32Bytes = _getBytes(_wl_block32);  private final static String _wl_block33 = "\r\n<center>\r\n<table style=\"background-image:url(\'images/foot.jpg\');height=60\"  width=\"770\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n  <tr>\r\n    <td align=\"center\">版权所有:软件0412 <font color=\"red\">60</font>,<font color=\"red\">64</font> <a href=\"mailto:w_lin1986@126.com\"><img alt=\"\" src=\"images/72.gif\" /></a> </td>\r\n  </tr>\r\n<tr>\r\n    <td align=\"center\"><a href=\"login\">管理员登录</a></td>\r\n  </tr>\r\n</table>\r\n</center>\r\n";  private final static byte[] _wl_block33Bytes = _getBytes(_wl_block33);  private final static String _wl_block34 = "\r\n\r\n";  private final static byte[] _wl_block34Bytes = _getBytes(_wl_block34);  
  
  public void _jspService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException 
  {  
    

⌨️ 快捷键说明

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