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

📄 setup4.jsp

📁 一个jive论坛管理的源码 学习Jive源程序
💻 JSP
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%
/**
 * $RCSfile: setup4.jsp,v $
 * $Revision: 1.1.1.1 $
 * $Date: 2002/09/09 13:50:22 $
 *
 * Copyright (C) 1999-2001 CoolServlets, Inc. All rights reserved.
 *
 * This software is the proprietary information of CoolServlets, Inc.
 * Use is subject to license terms.
 */
%>

<%@ page import="java.io.*,
                 java.util.*,
                 java.sql.Statement,
                 java.sql.*,
                 java.beans.*,
                 java.lang.reflect.*,
                 com.jivesoftware.forum.*,
                 com.jivesoftware.forum.util.*,
                 com.jivesoftware.forum.database.*"%>

<%  // Get the global Jive locale
	Locale locale = JiveGlobals.getLocale();
	// Set the JSP page to use the Jive locale
	response.setLocale(locale);
	// Load the appropriate resource bundle to display the page.
	ResourceBundle bundle = SkinUtils.getResourceBundle("skin_admin_setup", locale);

    Connection con = null;
    DatabaseMetaData metaData = null;
    try {
        con = ConnectionManager.getConnection();
        metaData = con.getMetaData();
        session.setAttribute("sidebar.2.light", GREEN);
        session.setAttribute("setup3.done", "true");
    }
    catch (Exception e) {
        e.printStackTrace();
    }
%>

<%@ include file="global.jsp" %>

<%@ include file="header.jsp" %>

<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td width="1%" valign="top">
<%  // set sidebar properties
    if (!GREEN.equals(getSessionString(session,"sidebar.2.light"))) {
        session.setAttribute("sidebar.2.light", YELLOW);
    }
%>
<%@ include file="sidebar.jsp" %>
</td>
<td width="99%" valign="top">

    <b><%= bundle.getString("setup3.header") %></b>
    <hr size="0">

    <font size="-1">
    Jive成功连接到数据库,请进入下一步安装。
	<p>

	<table cellpadding="2" cellspacing="2" border="0">
    <tr>
    	<td colspan="2"><font size="-1"><b>数据库属性</b></font></td>
    </tr>
    <tr>
    	<td><font size="-1" color="#000099">名称:</font></td>
    	<td><font size="-1"><%= metaData.getDatabaseProductName() %></font></td>
    </tr>
    <tr>
    	<td><font size="-1" color="#000099">版本:</font></td>
    	<td><font size="-1"><%= metaData.getDatabaseProductVersion() %></font></td>
    </tr>
    <tr>
    	<td colspan="2"><br><b><font size="-1">JDBC驱动属性</font></b></td>
    </tr>
    <tr>
    	<td><font size="-1" color="#000099">驱动:</font></td>
    	<td><font size="-1"><%= metaData.getDriverName() %>, 版本 <%= metaData.getDriverVersion() %></font></td>
    </tr>
    <tr>
    	<td><font size="-1" color="#000099">连接URL:</font></td>
    	<td><font size="-1"><%= metaData.getURL() %></font></td>
    </tr>
    <tr>
    	<td><font size="-1" color="#000099">连接用户名:</font></td>
    	<td><font size="-1"><%= metaData.getUserName() %></font></td>
    </tr>
    <tr>
    	<td colspan="2"><br><b><font size="-1">数据库功能</font></b></td>
    </tr>
    <tr>
    	<td><font size="-1" color="#000099">支持事务?</font></td>
    	<td><font size="-1"><%= (metaData.supportsTransactions())?bundle.getString("yes"):bundle.getString("no")  %></font></td>
    </tr>
    <tr>
    	<td><font size="-1" color="#000099">支持多连接?</font></td>
    	<td><font size="-1"><%= (metaData.supportsMultipleTransactions())?bundle.getString("yes"):bundle.getString("no")  %></font></td>
    </tr>
    <tr>
    	<td><font size="-1" color="#000099">只读模式?</font></td>
    	<td><font size="-1"><%= (metaData.isReadOnly())?bundle.getString("yes"):bundle.getString("no") %></font></td>
    </tr>
    </table>

    <p>

    <form action="setup5.jsp">
    <hr size="0">
    <div align="center">
    <input type="submit" value="连接">
    </form>
    </div>

    </form>

<%@ include file="footer.jsp" %>

</td>
</tr>
</table>

⌨️ 快捷键说明

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