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

📄 __index.java

📁 学生成绩管理系统,基于java 方向的软件开发
💻 JAVA
字号:
/* compiled from JSP: /index.jsp
*
* This code was automatically generated at 12:58:22 on 2004-6-19
* 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


// 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 12:58:22 on 2004-6-19
* by weblogic.servlet.jsp.Jsp2Java -- do not edit.
*
* Copyright (c) 2004 by BEA Systems, Inc. All Rights Reserved.
*/
public final class __index
extends
weblogic.servlet.jsp.JspBase
implements weblogic.servlet.jsp.StaleIndicator
{
  
  // 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", 1087618626442L, "8.1.2.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", 1087618626442L, "8.1.2.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<html>\r\n<head>\r\n<title>\r\nindex\r\n</title>\r\n</head>\r\n<body bgcolor=\"#ffffff\">\r\n";  private final static byte[] _wl_block0Bytes = _getBytes(_wl_block0);  private final static String _wl_block1 = "\r\n<form action=index method=post>\r\n<input type=text name=id>\r\n<select size=1 name=search_kind>\r\n<option selected></option>\r\n<option value=1>按姓名搜索</option>\r\n<option value=2>按学号搜索</option>\r\n</select>\r\n<input type=submit value=\'确定\'>\r\n</form>\r\n<br><br>\r\n<form action=index.jsp>\r\n<select size=1 name=search_kind>\r\n<option value=1 selected>按学号排序</option>\r\n<option value=2>按年级排序</option>\r\n</select>\r\n<input type=submit value=\"查看所有记录\">\r\n</form>\r\n";  private final static byte[] _wl_block1Bytes = _getBytes(_wl_block1);  private final static String _wl_block2 = "\r\n<table border=1>\r\n<tr>\r\n<td>学号</td><td>姓名</td><td>性别</td><td>年级</td><td>出生日期</td>\r\n";  private final static byte[] _wl_block2Bytes = _getBytes(_wl_block2);  private final static String _wl_block3 = "\r\n<td>时间</td><td>管理</td>\r\n</tr>\r\n";  private final static byte[] _wl_block3Bytes = _getBytes(_wl_block3);  private final static String _wl_block4 = "\r\n<tr>\r\n<td>";  private final static byte[] _wl_block4Bytes = _getBytes(_wl_block4);  private final static String _wl_block5 = "</td>\r\n<td>";  private final static byte[] _wl_block5Bytes = _getBytes(_wl_block5);  private final static String _wl_block6 = "</td>\r\n<td>";  private final static byte[] _wl_block6Bytes = _getBytes(_wl_block6);  private final static String _wl_block7 = "</td>\r\n<td>";  private final static byte[] _wl_block7Bytes = _getBytes(_wl_block7);  private final static String _wl_block8 = "</td>\r\n<td>";  private final static byte[] _wl_block8Bytes = _getBytes(_wl_block8);  private final static String _wl_block9 = "</td>\r\n";  private final static byte[] _wl_block9Bytes = _getBytes(_wl_block9);  private final static String _wl_block10 = "\r\n<td>";  private final static byte[] _wl_block10Bytes = _getBytes(_wl_block10);  private final static String _wl_block11 = "</td>\r\n<td><a href=manage?action=change&id=";  private final static byte[] _wl_block11Bytes = _getBytes(_wl_block11);  private final static String _wl_block12 = " target=_blank>修改</a>/<a href=manage?action=del&id=";  private final static byte[] _wl_block12Bytes = _getBytes(_wl_block12);  private final static String _wl_block13 = " target=_blank>删除</a></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";  private final static byte[] _wl_block14Bytes = _getBytes(_wl_block14);  private final static String _wl_block15 = "\r\n<a href=\"index.jsp?search_kind=";  private final static byte[] _wl_block15Bytes = _getBytes(_wl_block15);  private final static String _wl_block16 = "&page=";  private final static byte[] _wl_block16Bytes = _getBytes(_wl_block16);  private final static String _wl_block17 = "\">&nbsp;";  private final static byte[] _wl_block17Bytes = _getBytes(_wl_block17);  private final static String _wl_block18 = "&nbsp;</a>\r\n";  private final static byte[] _wl_block18Bytes = _getBytes(_wl_block18);  private final static String _wl_block19 = "\r\n</body>\r\n</html>\r\n";  private final static byte[] _wl_block19Bytes = _getBytes(_wl_block19);  
  
  public void _jspService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException 
  {  
    
    // declare and set well-known variables:
    javax.servlet.ServletConfig config = getServletConfig();
    javax.servlet.ServletContext application = config.getServletContext();
    javax.servlet.jsp.tagext.Tag _activeTag = null;
    // variables for Tag extension protocol    
    Object page = this;
    javax.servlet.jsp.JspWriter out;
    javax.servlet.jsp.PageContext pageContext =    javax.servlet.jsp.JspFactory.getDefaultFactory().getPageContext(this, request, response, null, true, 8192, true);    
    response.setHeader("Content-Type", "text/html; charset=GB2312");    out = pageContext.getOut();    JspWriter _originalOut = out;    
    javax.servlet.http.HttpSession session = request.getSession(true);    
    
    
    try { // error page try block            response.setContentType("text/html; charset=GB2312");            _writeText(response, out, _wl_block0, _wl_block0Bytes);      //[ /index.jsp; Line: 9]      if(request.getParameter("search_kind")==null){ //[ /index.jsp; Line: 10]        _writeText(response, out, _wl_block1, _wl_block1Bytes);        //[ /index.jsp; Line: 29]      } //[ /index.jsp; Line: 30]      else{ //[ /index.jsp; Line: 31]        String kind=request.getParameter("search_kind"); //[ /index.jsp; Line: 32]        info.ReadDB readDB=new info.ReadDB(application.getRealPath("/"),kind); //[ /index.jsp; Line: 33]        info.Init init=new info.Init(application.getRealPath("/")); //[ /index.jsp; Line: 34]        int pageView=init.getPageView();//每页显示的记录数 //[ /index.jsp; Line: 35]        String getNowpage=request.getParameter("page"); //[ /index.jsp; Line: 36]        int nowpage;//取得当前页 //[ /index.jsp; Line: 37]        int pageMax;//总页数 //[ /index.jsp; Line: 38]        if(getNowpage==null) nowpage=1; //[ /index.jsp; Line: 39]        else{ //[ /index.jsp; Line: 40]          try{ //[ /index.jsp; Line: 41]            nowpage=Integer.parseInt(getNowpage); //[ /index.jsp; Line: 42]          } //[ /index.jsp; Line: 43]          catch(NumberFormatException e){ //[ /index.jsp; Line: 44]            nowpage=1; //[ /index.jsp; Line: 45]          } //[ /index.jsp; Line: 46]          if (nowpage<1) nowpage=1; //[ /index.jsp; Line: 47]        } //[ /index.jsp; Line: 48]        pageMax=(readDB.getRowcount()+pageView-1)/pageView; //[ /index.jsp; Line: 49]        if (nowpage>pageMax) nowpage=pageMax; //[ /index.jsp; Line: 50]        int start=pageView*(nowpage-1)+1; //[ /index.jsp; Line: 51]        if(pageView>readDB.getRowcount()) pageView=readDB.getRowcount(); //[ /index.jsp; Line: 52]        _writeText(response, out, _wl_block2, _wl_block2Bytes);        //[ /index.jsp; Line: 57]        for (int i=1;i<=readDB.getNum()-2;i++) //[ /index.jsp; Line: 58]        out.println("<td>class"+i+"</td>"); //[ /index.jsp; Line: 59]        _writeText(response, out, _wl_block3, _wl_block3Bytes);        //[ /index.jsp; Line: 63]        for (int i=0;i<pageView;i++){ //[ /index.jsp; Line: 64]          readDB.readSQL(start); //[ /index.jsp; Line: 65]          start++; //[ /index.jsp; Line: 66]          _writeText(response, out, _wl_block4, _wl_block4Bytes);          out.print(String.valueOf(readDB.getID()));  //[ /index.jsp; Line: 69]          _writeText(response, out, _wl_block5, _wl_block5Bytes);          out.print(String.valueOf(readDB.getS_name()));  //[ /index.jsp; Line: 70]          _writeText(response, out, _wl_block6, _wl_block6Bytes);          out.print(String.valueOf(readDB.getS_sex()));  //[ /index.jsp; Line: 71]          _writeText(response, out, _wl_block7, _wl_block7Bytes);          out.print(String.valueOf(readDB.getS_grade()));  //[ /index.jsp; Line: 72]          _writeText(response, out, _wl_block8, _wl_block8Bytes);          out.print(String.valueOf(readDB.getS_birth()));  //[ /index.jsp; Line: 73]          _writeText(response, out, _wl_block9, _wl_block9Bytes);          //[ /index.jsp; Line: 74]          for (int t=1;t<=readDB.getNum()-2;t++){ //[ /index.jsp; Line: 75]            float[] classname=readDB.getclassname(); //[ /index.jsp; Line: 76]            out.println("<td>"+classname[t-1]+"</td>"); //[ /index.jsp; Line: 77]          } //[ /index.jsp; Line: 78]          _writeText(response, out, _wl_block10, _wl_block10Bytes);          out.print(String.valueOf(readDB.getS_time()));  //[ /index.jsp; Line: 80]          _writeText(response, out, _wl_block11, _wl_block11Bytes);          out.print(String.valueOf(readDB.getID()));  //[ /index.jsp; Line: 81]          _writeText(response, out, _wl_block12, _wl_block12Bytes);          out.print(String.valueOf(readDB.getID()));  //[ /index.jsp; Line: 81]          _writeText(response, out, _wl_block13, _wl_block13Bytes);          //[ /index.jsp; Line: 83]          if(start>readDB.getRowcount()) break; //[ /index.jsp; Line: 84]        } //[ /index.jsp; Line: 85]        readDB.close(); //[ /index.jsp; Line: 86]        _writeText(response, out, _wl_block14, _wl_block14Bytes);        //[ /index.jsp; Line: 89]        for (int i=1;i<=pageMax;i++){ //[ /index.jsp; Line: 90]          _writeText(response, out, _wl_block15, _wl_block15Bytes);          out.print(String.valueOf(kind));  //[ /index.jsp; Line: 92]          _writeText(response, out, _wl_block16, _wl_block16Bytes);          out.print(String.valueOf(i));  //[ /index.jsp; Line: 92]          _writeText(response, out, _wl_block17, _wl_block17Bytes);          out.print(String.valueOf(i));  //[ /index.jsp; Line: 92]          _writeText(response, out, _wl_block18, _wl_block18Bytes);          //[ /index.jsp; Line: 93]        } //[ /index.jsp; Line: 94]      } //[ /index.jsp; Line: 95]      _writeText(response, out, _wl_block19, _wl_block19Bytes);    } catch (Throwable __ee) {      while (out != null && out != _originalOut) out = pageContext.popBody();      ((weblogic.servlet.jsp.PageContextImpl)pageContext).handlePageException((Throwable)__ee);    }        
    //before final close brace...
  }
  
  
}

⌨️ 快捷键说明

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