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

📄 install_step1.jsp

📁 计算机技术的快速发展
💻 JSP
字号:
<%@page contentType="text/html; charset=gb2312" language="java" errorPage="error.jsp"%>
<%@page import="com.suninformation.*,com.suninformation.user.*,com.suninformation.tools.*,java.util.*,java.io.*"%>
<%request.setCharacterEncoding("gb2312");%>
<html>
<head>
<title>沈航网络_用户管理模块 安装/维护向导</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
  <!--
    body {
	background-image: url();
    }
    body,td,th {
		font-size: 12px;
    }
  -->
</style>
<link href="../../Includes/user.css" rel="stylesheet" type="text/css">
</head>
<body>
<%
boolean Install = ParamUtils.getBooleanParameter(request, "install", false);
String SysPath = ParamUtils.getParameter(request,"syspath");

if (Install && request.getMethod().equals("POST")) { //判断是否是非法进入
	if (SysPath != null && SysPath.length()<=255) {
		Properties initProps = new Properties();
		InputStream in = null;
		FileOutputStream fout = null;
		try {
			fout = new FileOutputStream(SysPath + "/WEB-INF/classes/suninfo_init.properties");
			initProps.setProperty("sysPath",SysPath);
			initProps.setProperty("version","1.0.5");
			/*initProps.setProperty("appHome","");
			initProps.setProperty("userHome","");
			initProps.setProperty("helpHome","");
			initProps.setProperty("dbClassForName","");
			initProps.setProperty("dbServer","");
			initProps.setProperty("dbUser","");
			initProps.setProperty("dbPwd","");
			initProps.setProperty("mail.host","");
			initProps.setProperty("mail.port","");
			initProps.setProperty("mail.debug","");*/
			initProps.store(fout, "suninfo_init.properties");
		}
		catch (IOException ioe) {
		  throw new UnloadPropertiesException("系统属性文件IO操作失败。", ioe);
		}
		finally {
		  try {
			if (in != null) {
			  in.close();
			  fout.close();
			}
		  }
		  catch (Exception e) {}
		}
	}
	else {
		throw new UnacceptableException("我正确输入系统安装路径。");
	}
}
%>
<table width="67%"  border="0" align="center" cellpadding="1" cellspacing="1" class="td_left_up_down_right">
  <tr>
    <td><form action="install_step2.jsp" method="post" name="frmUserInstall" id="frmUserInstall">
        <br>
        <table width="100%"  border="0" align="center" cellpadding="1" cellspacing="1">
          <tr>
            <td width="1%" height="22" class="td_downLine"><img src="../../Images/arrow_04.gif" width="7" height="7"> 沈航网络_用户管理模块  - 系统属性设置</td>
          </tr>
          <tr>
            <td height="120" align="center" class="td_downLine"><table width="74%"  border="0" cellspacing="1" cellpadding="1">
              <tr>
                <td width="23%" align="right">appHome</td>
                <td width="77%"><input name="apphome" type="text" id="apphome"style="FONT-SIZE: 12px; WIDTH: 200px" maxlength="255"></td>
              </tr>
              <tr>
                <td align="right">userHome</td>
                <td><input name="userhome" type="text" id="userhome"style="FONT-SIZE: 12px; WIDTH: 200px" maxlength="255"></td>
              </tr>
              <tr>
                <td align="right">helpHome</td>
                <td><input name="helphome" type="text" id="helphome"style="FONT-SIZE: 12px; WIDTH: 200px" maxlength="255"></td>
              </tr>
              <tr>
                <td align="right">dbClassForName</td>
                <td><input name="dbclass" type="text" id="dbclass"style="FONT-SIZE: 12px; WIDTH: 200px" maxlength="255"></td>
              </tr>
              <tr>
                <td align="right">dbServer</td>
                <td><input name="dbserver" type="text" id="dbserver"style="FONT-SIZE: 12px; WIDTH: 200px" maxlength="255"></td>
              </tr>
              <tr>
                <td align="right">dbUser</td>
                <td><input name="dbuser" type="text" id="dbuser"style="FONT-SIZE: 12px; WIDTH: 200px" maxlength="255"></td>
              </tr>
              <tr>
                <td align="right">dbPwd</td>
                <td><input name="dbpwd" type="text" id="dbpwd"style="FONT-SIZE: 12px; WIDTH: 200px" maxlength="255"></td>
              </tr>
              <tr>
                <td align="right">mail.host</td>
                <td><input name="mailhost" type="text" id="mailhost"style="FONT-SIZE: 12px; WIDTH: 200px" maxlength="255"></td>
              </tr>
              <tr>
                <td align="right">mail.port</td>
                <td><input name="mailport" type="text" id="mailport"style="FONT-SIZE: 12px; WIDTH: 80px" maxlength="255"></td>
              </tr>
              <tr>
                <td align="right">mail.debug</td>
                <td><input name="maildebug" type="text" id="maildebug"style="FONT-SIZE: 12px; WIDTH: 80px" maxlength="255"></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td align="center"><input name="save" type="hidden" id="save" value="true">
            <input name="btn_save" type="submit" id="btn_save" value="保存" style="FONT-SIZE: 12px; WIDTH: 80px">
            <input name="btn_save" type="submit" id="btn_save" value="返回" style="FONT-SIZE: 12px; WIDTH: 80px"></td></tr>
        </table>
    </form></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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