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

📄 install_step2.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 Save = ParamUtils.getBooleanParameter(request, "save", false);
String Btn_Save = ParamUtils.getParameter(request,"btn_save");
String SysPath = ParamUtils.getParameter(request,"syspath");

String AppHome = ParamUtils.getParameter(request,"apphome");
String UserHome = ParamUtils.getParameter(request,"userhome");
String HelpHome = ParamUtils.getParameter(request,"helphome");
String DbClassForName = ParamUtils.getParameter(request,"dbclass");
String DbServer = ParamUtils.getParameter(request,"dbserver");
String DbUser = ParamUtils.getParameter(request,"dbuser");
String DbPwd = ParamUtils.getParameter(request,"dbpwd");
String MailHost = ParamUtils.getParameter(request,"mailhost");
String MailPort = ParamUtils.getParameter(request,"mailport");
String MailDebug = ParamUtils.getParameter(request,"maildebug");

if(Save && request.getMethod().equals("POST")) {
	if(Btn_Save.equals("保存")) {
		Properties initProps = new Properties();
		InputStream in = null;
		FileOutputStream fout = null;
		try {
		  try {
			in = getClass().getResourceAsStream("/suninfo_init.properties");
			initProps.load(in);
			fout = new FileOutputStream(initProps.getProperty("sysPath") +"/WEB-INF/classes/suninfo_init.properties");
			//initProps.setProperty("sysPath",SysPath);
			//initProps.setProperty("version","1.0.5");
			initProps.setProperty("appHome",AppHome==null?"":AppHome);
			initProps.setProperty("userHome",UserHome==null?"":UserHome);
			initProps.setProperty("helpHome",HelpHome==null?"":HelpHome);
			initProps.setProperty("dbClassForName",DbClassForName==null?"":DbClassForName);
			initProps.setProperty("dbServer",DbServer==null?"":DbServer);
			initProps.setProperty("dbUser",DbUser==null?"":DbUser);
			initProps.setProperty("dbPwd",DbPwd==null?"":DbPwd);
			initProps.setProperty("mail.host",MailHost==null?"":MailHost);
			initProps.setProperty("mail.port",MailPort==null?"":MailPort);
			initProps.setProperty("mail.debug",MailDebug==null?"":MailDebug);
			initProps.store(fout, "suninfo_init.properties");
		  }
		  catch (FileNotFoundException e) {
			throw new UnloadPropertiesException("找不到系统属性文件。", e);
		  }
		}
		catch (IOException ioe) {
		  throw new UnloadPropertiesException("系统属性文件IO操作失败。", ioe);
		}
		finally {
		  try {
			if (in != null) {
			  in.close();
			  fout.close();
			}
		  }
		  catch (Exception e) {}
		}
	}else if(Btn_Save.equals("返回")) {
		response.sendRedirect("index.jsp");
	}
}
AppHome = SunGlobal.getPersonValue("appHome");
UserHome = SunGlobal.getPersonValue("userHome");
HelpHome = SunGlobal.getPersonValue("helpHome");
DbClassForName = SunGlobal.getPersonValue("dbClassForName");
DbServer = SunGlobal.getPersonValue("dbServer");
DbUser = SunGlobal.getPersonValue("dbUser");
DbPwd = SunGlobal.getPersonValue("dbPwd");
MailHost = SunGlobal.getPersonValue("mail.host");
MailPort = SunGlobal.getPersonValue("mail.port");
MailDebug = SunGlobal.getPersonValue("mail.debug");
%>
<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" value="<%=AppHome==null?"":AppHome%>" maxlength="255"></td>
              </tr>
              <tr>
                <td align="right">userHome</td>
                <td><input name="userhome" type="text" id="userhome"style="FONT-SIZE: 12px; WIDTH: 200px" value="<%=UserHome==null?"":UserHome%>" maxlength="255"></td>
              </tr>
              <tr>
                <td align="right">helpHome</td>
                <td><input name="helphome" type="text" id="helphome"style="FONT-SIZE: 12px; WIDTH: 200px" value="<%=HelpHome==null?"":HelpHome%>" maxlength="255"></td>
              </tr>
              <tr>
                <td align="right">dbClassForName</td>
                <td><input name="dbclass" type="text" id="dbclass"style="FONT-SIZE: 12px; WIDTH: 200px" value="<%=DbClassForName==null?"":DbClassForName%>" maxlength="255"></td>
              </tr>
              <tr>
                <td align="right">dbServer</td>
                <td><input name="dbserver" type="text" id="dbserver"style="FONT-SIZE: 12px; WIDTH: 200px" value="<%=DbServer==null?"":DbServer%>" maxlength="255"></td>
              </tr>
              <tr>
                <td align="right">dbUser</td>
                <td><input name="dbuser" type="text" id="dbuser"style="FONT-SIZE: 12px; WIDTH: 200px" value="<%=DbUser==null?"":DbUser%>" maxlength="255"></td>
              </tr>
              <tr>
                <td align="right">dbPwd</td>
                <td><input name="dbpwd" type="text" id="dbpwd"style="FONT-SIZE: 12px; WIDTH: 200px" value="<%=DbPwd==null?"":DbPwd%>" 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" value="<%=MailHost==null?"":MailHost%>" 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" value="<%=MailPort==null?"":MailPort%>" 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" value="<%=MailDebug==null?"":MailDebug%>" 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 + -