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

📄 setup3.jsp

📁 一套完整的工商12315的源程序jsp部分在12315里,后台JAVA部分在gs12315src里,没有打包数据库.
💻 JSP
字号:
<%
/**
 * TechWeb2 Setup Tool
 * November 28, 2000
 */
%>

<%@ page import="java.io.*,
                 java.util.*,
				 java.sql.*,
                 com.powerrun.ioffice.*,
				 com.powerrun.ioffice.util.*,
				 com.powerrun.ioffice.dbimp.*"%>

<html>
	<head>	<META HTTP-EQUIV="Pragma" CONTENT="no-cache">  
	<title>TechWeb2 Setup - Step 3</title>
		<link rel="stylesheet" href="style/global.css">
</head>

<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">

<img src="images/setup.gif" width="210" height="38" alt="TechWeb2 Setup" border="0">
<hr size="0"><p>

<% 
	boolean error = false;
	String errorMessage = null;
	//Make sure the install has not already been completed.
	String setup = PropertyManager.getProperty("setup");
	if( setup != null && setup.equals("true") ) {
		error = true;
		errorMessage = "TechWeb2 setup appears to have already been completed. If you'd like " +
			"to re-run this tool, delete the 'setup=true' property from your jive.properties " +
			"file.";
	}
	
	DatabaseMetaData metaData = null;
	Connection con = null;
	if (!error) {
		try {
			con = DbConnectionManager.getConnection();
			metaData = con.getMetaData();
		}
		catch( Exception e ) { 
			e.printStackTrace();
		}
	}
%>

<%
	if (!error) {
		try {
%>

<b>Database Information</b>

<ul>
	<font size="2">
	TechWeb2 successfully connected to your database. Press the "Continue" button to proceed to the next step of
	setup. 
	<p>
	
	<table cellpadding="2" cellspacing="2" border="0">
<tr>
	<td colspan="2"><font size="-1"><b>Database Properties</b></font></td>
</tr>
<tr>
	<td bgcolor="#eeeeee"><font size="-1">Name:</font></td>
	<td><font size="-1"><%= metaData.getDatabaseProductName() %></font></td>
</tr>
<tr>
	<td bgcolor="#eeeeee"><font size="-1">Version:</font></td>
	<td><font size="-1"><%= metaData.getDatabaseProductVersion() %></font></td>
</tr>
<tr>
	<td colspan="2"><br><b><font size="-1">JDBC Driver Properties</font></b></td>
</tr>
<tr>
	<td bgcolor="#eeeeee"><font size="-1">Driver:</font></td>
	<td><font size="-1"><%= metaData.getDriverName() %>, version <%= metaData.getDriverVersion() %></font></td>
</tr>
<tr>
	<td bgcolor="#eeeeee"><font size="-1">Connection URL:</font></td>
	<td><font size="-1"><%= metaData.getURL() %></font></td>
</tr>
<tr>
	<td bgcolor="#eeeeee"><font size="-1">Connection username:</font></td>
	<td><font size="-1"><%= metaData.getUserName() %></font></td>
</tr>
<tr>
	<td colspan="2"><br><b><font size="-1">Database Capabilities</font></b></td>
</tr>
<tr>
	<td bgcolor="#eeeeee"><font size="-1">Supports transactions?</font></td>
	<td><font size="-1"><%= (metaData.supportsTransactions())?"Yes":"No" %></font></td>
</tr>
<tr>
	<td bgcolor="#eeeeee"><font size="-1">Supports multiple connections <br>open at once?</font></td>
	<td><font size="-1"><%= (metaData.supportsMultipleTransactions())?"Yes":"No" %></font></td>
</tr>
<tr>
	<td bgcolor="#eeeeee"><font size="-1">Is in read-only mode?</font></td>
	<td><font size="-1"><%= (metaData.isReadOnly())?"Yes":"No" %></font></td>
</tr>
</table>

<%			con.close();
		}
		catch( Exception e ) {}
%>
	
	<form action="setup4.jsp" method="post">
	
</ul>

<center>
<input type="submit" value="Continue &gt;">
</center>
</form>

<%	} //end no error
	else {
%>
	<font color="Red">Error!</font>
	<p><font size=2>
	
	<%= errorMessage %>
	
	</font>
<%
	} //end error
%>

<p>
<hr size="0">
<center><font size="-1"><i>Stone Powerrun Software Techonology Co.</i></font></center>
</font>
</body>
</html>

⌨️ 快捷键说明

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