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

📄 _setup__jsp.java

📁 JSP聊天系统
💻 JAVA
字号:
/*
 * JSP generated by Resin 2.1.4 (built Fri Aug  2 14:16:52 PDT 2002)
 */

package _setup;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.lang.reflect.*;

public class _setup__jsp extends com.caucho.jsp.JavaPage{
  private boolean _caucho_isDead;
  
  public void
  _jspService(javax.servlet.http.HttpServletRequest request,
              javax.servlet.http.HttpServletResponse response)
    throws java.io.IOException, javax.servlet.ServletException
  {
    com.caucho.jsp.QPageContext pageContext = (com.caucho.jsp.QPageContext) com.caucho.jsp.QJspFactory.create().getPageContext(this, request, response, null, true, 8192, true);
    javax.servlet.jsp.JspWriter out = (javax.servlet.jsp.JspWriter) pageContext.getOut();
    javax.servlet.ServletConfig config = getServletConfig();
    javax.servlet.Servlet page = this;
    javax.servlet.http.HttpSession session = pageContext.getSession();
    javax.servlet.ServletContext application = pageContext.getServletContext();
    response.setContentType("text/html;charset=gb2312");
    request.setCharacterEncoding("GB2312");
    try {
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string1, 0, _jsp_string1.length);
      out.print(( application.getServerInfo() ));
      pageContext.write(_jsp_string2, 0, _jsp_string2.length);
      
		//See if they have Java2 or later installed by trying to load java.util.HashMap.
		boolean isJava2 = true;
		try {
			Class.forName("java.util.HashMap");
		}
		catch (ClassNotFoundException cnfe) {
			isJava2 = false;
		}
		if (isJava2) {
	
      pageContext.write(_jsp_string3, 0, _jsp_string3.length);
      
		}
		else {
	
      pageContext.write(_jsp_string4, 0, _jsp_string4.length);
      
		}
	
      pageContext.write(_jsp_string5, 0, _jsp_string5.length);
      
		//See if the Yekki classes are installed
		boolean yekkiInstalled = true;
		try {
			Class.forName("com.coolservlets.forum.Forum");
			Class.forName("org.ehotsoft.yekki.sql.SQLFacade");
		}
		catch (ClassNotFoundException cnfe) {
			yekkiInstalled = false;
		}
		if (yekkiInstalled) {
	
      pageContext.write(_jsp_string6, 0, _jsp_string6.length);
      
		}
		else {
	
      pageContext.write(_jsp_string7, 0, _jsp_string7.length);
      
		}
	
      pageContext.write(_jsp_string5, 0, _jsp_string5.length);
      
		//See if the Lucene classes are installed
		boolean luceneInstalled = true;
		try {
			Class.forName("com.lucene.document.Document");
		}
		catch (ClassNotFoundException cnfe) {
			luceneInstalled = false;
		}
		if (yekkiInstalled) {
	
      pageContext.write(_jsp_string8, 0, _jsp_string8.length);
      
		}
		else {
	
      pageContext.write(_jsp_string9, 0, _jsp_string9.length);
      
		}
	
      pageContext.write(_jsp_string5, 0, _jsp_string5.length);
      
		//See if the Lucene classes are installed
		boolean ecsInstalled = true;
		try {
			Class.forName("org.apache.ecs.html.Html");
		}
		catch (ClassNotFoundException cnfe) {
			ecsInstalled = false;
		}
		if (ecsInstalled) {
	
      pageContext.write(_jsp_string10, 0, _jsp_string10.length);
      
		}
		else {
	
      pageContext.write(_jsp_string11, 0, _jsp_string11.length);
      
		}
	
      pageContext.write(_jsp_string5, 0, _jsp_string5.length);
      
		//Check status of Yekki.properties file. Because some servlet engines have seperate class
		//loaders for JSP and other Java classes, we need to use the Yekki PropertyManager to
		//get the properties. We use reflection to call methods on PropertyManager so that we don't 
		//have to do an import of that class and screw up the error messages for failure to load Yekki classes.
		
		boolean propError = false;
		String errorMessage = null;
		String path = null;
		try {
			Class propManager = Class.forName("org.ehotsoft.yekki.util.PropertyManager");
			
			Method propReadable = propManager.getMethod("propertyFileIsReadable", null);
			if ( ((Boolean)propReadable.invoke(null,null)).booleanValue() ) {
						
				//Now, get property
				Method getProperty = propManager.getMethod("getProperty", new Class[] { Class.forName("java.lang.String") } );
				path = (String)getProperty.invoke(null, new Object[] { "path" } );
				if (path == null || path.equals("")) {
					propError = true;
					errorMessage = "Yekki 属性已被成功调用. 然而, 此" +
						"路径域没有被设置,防止保存Yekki" +
						"属性到系统文件中.编辑此属性文件并添加路径" +
						"域大约像: 'path=c:\\path\\to\\Yekki.properties' " +
						"or 'path=/path/to/Yekki.properties'.";
				}
				//Otherwise, see if the file exists
				else {
					Method propExists = propManager.getMethod("propertyFileExists", null);
					if ( ((Boolean)propExists.invoke(null,null)).booleanValue() ) {
						//See if we can write to the file
						Method propWritable = propManager.getMethod("propertyFileIsWritable", null);
						if ( !((Boolean)propWritable.invoke(null,null)).booleanValue() ) {
							propError = true;
							errorMessage = "Yekki 属性已被成功调用并发现在  &quot;<code>" +
								path + "</code>&quot;. 然而, 此应用程序服务器没有写的权限 " +
								"在此文件上.";
						}
					}
					//The file doesn't exist
					else {
						propError = true;
						errorMessage = " Yekki 属性已被成功调用.然而,路径 &quot;<code>" +
							path + "</code>&quot; 不存在.编辑 Yekki属性文件并确认 " +
							"此路径指向正确的属性文件存在的地方在你 " +
							"系统文件中.";
					}
				}
        	}
        	else {
           		propError = true;
           		errorMessage = "Yekki的属性文件不能被调用.确认它是否 " +
					"在应用程序服务器中的类路径中.";
        	}
		}
		catch (Exception e) {
			e.printStackTrace();
			propError = true;
           	errorMessage = "在调用Yekki属性中发现一个基本错误. 确认你是否" +
				"安装了最新的Yekki.";
		}
		if (!propError) {
	
      pageContext.write(_jsp_string12, 0, _jsp_string12.length);
      out.print(( path ));
      pageContext.write(_jsp_string2, 0, _jsp_string2.length);
      
		}
		else {
	
      pageContext.write(_jsp_string13, 0, _jsp_string13.length);
      out.print(( errorMessage ));
      pageContext.write(_jsp_string14, 0, _jsp_string14.length);
      
		}
	
      pageContext.write(_jsp_string15, 0, _jsp_string15.length);
       
	if (propError || !yekkiInstalled || !isJava2 || !ecsInstalled) {

      pageContext.write(_jsp_string16, 0, _jsp_string16.length);
      
	}
	else {

      pageContext.write(_jsp_string17, 0, _jsp_string17.length);
      
	}

      pageContext.write(_jsp_string18, 0, _jsp_string18.length);
    } catch (java.lang.Throwable _jsp_e) {
      pageContext.handlePageException(_jsp_e);
    } finally {
      JspFactory.getDefaultFactory().releasePageContext(pageContext);
    }
  }

  private com.caucho.java.LineMap _caucho_line_map;
  private java.util.ArrayList _caucho_depends = new java.util.ArrayList();

  public boolean _caucho_isModified()
  {
    if (_caucho_isDead)
      return true;
    if (com.caucho.util.CauchoSystem.getVersionId() != 2057024146)
      return true;
    for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
      com.caucho.vfs.Depend depend;
      depend = (com.caucho.vfs.Depend) _caucho_depends.get(i);
      if (depend.isModified())
        return true;
    }
    return false;
  }

  public long _caucho_lastModified()
  {
    return 0;
  }

  public com.caucho.java.LineMap _caucho_getLineMap()
  {
    return _caucho_line_map;
  }

  public void destroy()
  {
      _caucho_isDead = true;
      super.destroy();
  }

  public void init(com.caucho.java.LineMap lineMap,
                   com.caucho.vfs.Path appDir)
    throws javax.servlet.ServletException
  {
    com.caucho.vfs.Path resinHome = com.caucho.util.CauchoSystem.getResinHome();
    com.caucho.vfs.MergePath mergePath = new com.caucho.vfs.MergePath();
    mergePath.addMergePath(appDir);
    mergePath.addMergePath(resinHome);
    mergePath.addClassPath(getClass().getClassLoader());
    _caucho_line_map = new com.caucho.java.LineMap("_setup__jsp.java", "/setup/setup.jsp");
    _caucho_line_map.add(2, 1);
    _caucho_line_map.add(1, 30);
    _caucho_line_map.add(22, 32);
    _caucho_line_map.add(39, 46);
    _caucho_line_map.add(48, 51);
    _caucho_line_map.add(51, 55);
    _caucho_line_map.add(67, 68);
    _caucho_line_map.add(76, 73);
    _caucho_line_map.add(79, 77);
    _caucho_line_map.add(94, 89);
    _caucho_line_map.add(103, 94);
    _caucho_line_map.add(106, 98);
    _caucho_line_map.add(121, 110);
    _caucho_line_map.add(130, 115);
    _caucho_line_map.add(133, 119);
    _caucho_line_map.add(198, 183);
    _caucho_line_map.add(206, 190);
    _caucho_line_map.add(214, 196);
    _caucho_line_map.add(230, 205);
    com.caucho.vfs.Depend depend;
    depend = new com.caucho.vfs.Depend(mergePath.lookup("doc/setup/setup.jsp"), 1029982536000L, 7207L);
    _caucho_depends.add(depend);
  }

  private static byte []_jsp_string1;
  private static byte []_jsp_string16;
  private static byte []_jsp_string7;
  private static byte []_jsp_string6;
  private static byte []_jsp_string9;
  private static byte []_jsp_string11;
  private static byte []_jsp_string0;
  private static byte []_jsp_string5;
  private static byte []_jsp_string12;
  private static byte []_jsp_string2;
  private static byte []_jsp_string13;
  private static byte []_jsp_string4;
  private static byte []_jsp_string3;
  private static byte []_jsp_string10;
  private static byte []_jsp_string15;
  private static byte []_jsp_string14;
  private static byte []_jsp_string8;
  private static byte []_jsp_string18;
  private static byte []_jsp_string17;
  static {
    try {
      _jsp_string1 = "\r\n<html>\r\n<head>\r\n	<title> 安装 Yekki</title>\r\n		<link rel=\"stylesheet\" href=\"style/global.css\">\r\n</head>\r\n\r\n<body bgcolor=\"#FFFFFF\" text=\"#000000\" link=\"#0000FF\" vlink=\"#800080\" alink=\"#FF0000\" background=\"../images/background.gif\">\r\n<p>\r\n\r\n<b>欢迎进入Yekki安装程序</b>\r\n<p> 我们检测到您的系统需要安装向导,此工具将引导你连接数据库和设置一个超级管理员帐号.安装完成后,您将能用此管理工具去创建论坛和开始使用 Yekki. \r\n  如果您在安装过程中遇到问题,请将问题发送到 <a href=\"mailto:aspphp@fm365.com\">aspphp@fm365.com</a>. \r\n  如果你在安装完成后再想回到安装程序的某一步,你须从你的Yekki属性文件中删除 \"setup=true\" 域. \r\n<p>\r\n<b>安装检测列表</b>\r\n<ul>\r\n  <table border=0>\r\n    <tr> \r\n      <td valign=top><img src=\"images/check.gif\" width=\"13\" height=\"13\"></td>\r\n      <td> 安装程序检测到你正在运行".getBytes("GB2312");
      _jsp_string16 = "\r\n	<font color=\"red\"><b>在安装检测列表中有一个或多个错误.请改正它们,重新启动应用程序服务器并重新调用此页.</b></font>\r\n".getBytes("GB2312");
      _jsp_string7 = "\r\n    <tr> \r\n      <td valign=top><img src=\"images/x.gif\" width=\"13\" height=\"13\"></td>\r\n      <td> <font color=\"red\"> Yekki 应用程序文件不能被调用. 理解安装文件引导并确认类文件是否在你应用程序服务器的类路径.</font> \r\n      </td>\r\n    </tr>\r\n    ".getBytes("GB2312");
      _jsp_string6 = "\r\n    <tr> \r\n      <td valign=top><img src=\"images/check.gif\" width=\"13\" height=\"13\"></td>\r\n      <td> Yekki 应用程序文件已安装. </td>\r\n    </tr>\r\n    ".getBytes("GB2312");
      _jsp_string9 = "\r\n    <tr> \r\n      <td valign=top><img src=\"images/x.gif\" width=\"13\" height=\"13\"></td>\r\n      <td> <font color=\"red\"> Lucene 应用程序文件不能被调用. 理解安装文件引导并确认类文件是否在你应用程序服务器的类路径中. \r\n        </font> </td>\r\n    </tr>\r\n    ".getBytes("GB2312");
      _jsp_string11 = "\r\n    <tr> \r\n      <td valign=top><img src=\"images/x.gif\" width=\"13\" height=\"13\"></td>\r\n      <td> <font color=\"red\"> ECS 应用程序文件不能被调用, 理解安装文件引导并确认类文件是否在你应用程序服务器的类路径中( \r\n        你可以在www.apache.org网站找到 ); </font> </td>\r\n    </tr>\r\n    ".getBytes("GB2312");
      _jsp_string0 = "\r\n".getBytes("GB2312");
      _jsp_string5 = "\r\n    ".getBytes("GB2312");
      _jsp_string12 = "\r\n    <tr> \r\n      <td valign=top><img src=\"images/check.gif\" width=\"13\" height=\"13\"></td>\r\n      <td> Yekki 属性已成功被调用并发现在 ".getBytes("GB2312");
      _jsp_string2 = ". </td>\r\n    </tr>\r\n    ".getBytes("GB2312");
      _jsp_string13 = "\r\n    <tr> \r\n      <td valign=top><img src=\"images/x.gif\" width=\"13\" height=\"13\"></td>\r\n      <td> <font color=\"red\"> ".getBytes("GB2312");
      _jsp_string4 = "\r\n    <tr> \r\n      <td valign=top><img src=\"images/x.gif\" width=\"13\" height=\"13\"></td>\r\n      <td> <font color=\"red\"> 你好象现在或以后都不运行Java 2 , 因此, 安装程序不能继续.如果可能,升级你的Java版本并重新开始安装过程. \r\n        </font> </td>\r\n    </tr>\r\n    ".getBytes("GB2312");
      _jsp_string3 = "\r\n    <tr> \r\n      <td valign=top><img src=\"images/check.gif\" width=\"13\" height=\"13\"></td>\r\n      <td> 你现在就运行Java 2吗? </td>\r\n    </tr>\r\n    ".getBytes("GB2312");
      _jsp_string10 = "\r\n    <tr> \r\n      <td valign=top><img src=\"images/check.gif\" width=\"13\" height=\"13\"></td>\r\n      <td> ECS 应用程序文件已安装. </td>\r\n    </tr>\r\n    ".getBytes("GB2312");
      _jsp_string15 = "\r\n  </table>\r\n</ul>\r\n\r\n".getBytes("GB2312");
      _jsp_string14 = " </font> </td>\r\n    </tr>\r\n    ".getBytes("GB2312");
      _jsp_string8 = "\r\n    <tr> \r\n      <td valign=top><img src=\"images/check.gif\" width=\"13\" height=\"13\"></td>\r\n      <td> Lucene 应用程序文件已安装. </td>\r\n    </tr>\r\n    ".getBytes("GB2312");
      _jsp_string18 = "\r\n\r\n<p>\r\n<hr size=\"0\">\r\n</form>\r\n</body>\r\n</html>\r\n\r\n".getBytes("GB2312");
      _jsp_string17 = "\r\n\r\n\r\n<form action=\"setup2.jsp\" method=post>\r\n\r\n<center>\r\n    <input type=\"submit\" value=\"继续\">\r\n</center>\r\n\r\n".getBytes("GB2312");
    } catch (java.io.UnsupportedEncodingException e) {
      e.printStackTrace();
    }
  }
}

⌨️ 快捷键说明

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