jsp版本
This commit is contained in:
BIN
代码/jsp/web/WEB-INF/lib/commons-codec-1.10.jar
Normal file
BIN
代码/jsp/web/WEB-INF/lib/commons-codec-1.10.jar
Normal file
Binary file not shown.
BIN
代码/jsp/web/WEB-INF/lib/commons-collections4-4.1.jar
Normal file
BIN
代码/jsp/web/WEB-INF/lib/commons-collections4-4.1.jar
Normal file
Binary file not shown.
BIN
代码/jsp/web/WEB-INF/lib/commons-compress-1.12-javadoc.jar
Normal file
BIN
代码/jsp/web/WEB-INF/lib/commons-compress-1.12-javadoc.jar
Normal file
Binary file not shown.
BIN
代码/jsp/web/WEB-INF/lib/commons-compress-1.12.jar
Normal file
BIN
代码/jsp/web/WEB-INF/lib/commons-compress-1.12.jar
Normal file
Binary file not shown.
BIN
代码/jsp/web/WEB-INF/lib/commons-fileupload-1.3.2.jar
Normal file
BIN
代码/jsp/web/WEB-INF/lib/commons-fileupload-1.3.2.jar
Normal file
Binary file not shown.
BIN
代码/jsp/web/WEB-INF/lib/commons-io-2.5-javadoc.jar
Normal file
BIN
代码/jsp/web/WEB-INF/lib/commons-io-2.5-javadoc.jar
Normal file
Binary file not shown.
BIN
代码/jsp/web/WEB-INF/lib/commons-io-2.5.jar
Normal file
BIN
代码/jsp/web/WEB-INF/lib/commons-io-2.5.jar
Normal file
Binary file not shown.
BIN
代码/jsp/web/WEB-INF/lib/commons-logging-1.2.jar
Normal file
BIN
代码/jsp/web/WEB-INF/lib/commons-logging-1.2.jar
Normal file
Binary file not shown.
BIN
代码/jsp/web/WEB-INF/lib/ifxjdbc.jar
Normal file
BIN
代码/jsp/web/WEB-INF/lib/ifxjdbc.jar
Normal file
Binary file not shown.
BIN
代码/jsp/web/WEB-INF/lib/junit-4.12.jar
Normal file
BIN
代码/jsp/web/WEB-INF/lib/junit-4.12.jar
Normal file
Binary file not shown.
BIN
代码/jsp/web/WEB-INF/lib/log4j-1.2.17.jar
Normal file
BIN
代码/jsp/web/WEB-INF/lib/log4j-1.2.17.jar
Normal file
Binary file not shown.
BIN
代码/jsp/web/WEB-INF/lib/ojdbc5.jar
Normal file
BIN
代码/jsp/web/WEB-INF/lib/ojdbc5.jar
Normal file
Binary file not shown.
BIN
代码/jsp/web/WEB-INF/lib/ojdbc6.jar
Normal file
BIN
代码/jsp/web/WEB-INF/lib/ojdbc6.jar
Normal file
Binary file not shown.
BIN
代码/jsp/web/WEB-INF/lib/poi-3.15.jar
Normal file
BIN
代码/jsp/web/WEB-INF/lib/poi-3.15.jar
Normal file
Binary file not shown.
BIN
代码/jsp/web/WEB-INF/lib/poi-excelant-3.15.jar
Normal file
BIN
代码/jsp/web/WEB-INF/lib/poi-excelant-3.15.jar
Normal file
Binary file not shown.
BIN
代码/jsp/web/WEB-INF/lib/poi-ooxml-3.15.jar
Normal file
BIN
代码/jsp/web/WEB-INF/lib/poi-ooxml-3.15.jar
Normal file
Binary file not shown.
BIN
代码/jsp/web/WEB-INF/lib/poi-ooxml-schemas-3.15.jar
Normal file
BIN
代码/jsp/web/WEB-INF/lib/poi-ooxml-schemas-3.15.jar
Normal file
Binary file not shown.
BIN
代码/jsp/web/WEB-INF/lib/poi-scratchpad-3.15.jar
Normal file
BIN
代码/jsp/web/WEB-INF/lib/poi-scratchpad-3.15.jar
Normal file
Binary file not shown.
50
代码/jsp/web/WEB-INF/web.xml
Normal file
50
代码/jsp/web/WEB-INF/web.xml
Normal file
@@ -0,0 +1,50 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
|
||||
version="3.1">
|
||||
|
||||
<!--监听器-->
|
||||
<listener>
|
||||
<listener-class>com.cpic.telsale.SessionListener.SessionListener</listener-class>
|
||||
</listener>
|
||||
|
||||
<!--参数-->
|
||||
<session-config>
|
||||
<session-timeout>10</session-timeout>
|
||||
</session-config>
|
||||
|
||||
<!--全局的参数-->
|
||||
<context-param>
|
||||
<param-name>临时文件根目录</param-name>
|
||||
<param-value>temporaryFiles</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<param-name>oracleURL</param-name>
|
||||
<param-value>jdbc:oracle:thin:@10.39.0.86:1521:xmcx1</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<param-name>oracleUserName</param-name>
|
||||
<param-value>telsale</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<param-name>oraclePassword</param-name>
|
||||
<param-value>cpic123456</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<param-name>informixURL</param-name>
|
||||
<param-value>jdbc:informix-sqli://10.39.0.92:16192/ywgl_xm:INFORMIXSERVER=xmcx2;newcodeset=GBK,8859-1,819;user=ccx99;password=c92IT09</param-value>
|
||||
</context-param>
|
||||
|
||||
<!--Servlet设置-->
|
||||
<servlet>
|
||||
<servlet-name>UploadDataProcessor</servlet-name>
|
||||
<servlet-class>com.cpic.telsale.uploadData.uploadDataProcessor</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>UploadDataProcessor</servlet-name>
|
||||
<url-pattern>/upload-policy-data</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
</web-app>
|
BIN
代码/jsp/web/image/telephone.png
Normal file
BIN
代码/jsp/web/image/telephone.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.6 KiB |
20
代码/jsp/web/index.jsp
Normal file
20
代码/jsp/web/index.jsp
Normal file
@@ -0,0 +1,20 @@
|
||||
<%--
|
||||
Created by IntelliJ IDEA.
|
||||
User: Kane
|
||||
Date: 2017/3/27
|
||||
Time: 15:07
|
||||
To change this template use File | Settings | File Templates.
|
||||
--%>
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<html>
|
||||
<head>
|
||||
<title>$Title$</title>
|
||||
<link rel="icon" href="image/telephone.png">
|
||||
</head>
|
||||
<body>
|
||||
<%
|
||||
response.sendRedirect( "uploadPolicyData/uploadPolicyData.jsp" );
|
||||
//session.getAttribute( "tst" );
|
||||
%>
|
||||
</body>
|
||||
</html>
|
10
代码/jsp/web/uploadPolicyData/uploadPolicyData.css
Normal file
10
代码/jsp/web/uploadPolicyData/uploadPolicyData.css
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
#resultDiv
|
||||
{
|
||||
border: 1px solid silver;
|
||||
min-height: 600px;
|
||||
max-height: 800px;
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
overflow-y:scroll
|
||||
}
|
58
代码/jsp/web/uploadPolicyData/uploadPolicyData.jsp
Normal file
58
代码/jsp/web/uploadPolicyData/uploadPolicyData.jsp
Normal file
@@ -0,0 +1,58 @@
|
||||
<%--
|
||||
Created by IntelliJ IDEA.
|
||||
User: Kane
|
||||
Date: 2017/3/27
|
||||
Time: 16:14
|
||||
To change this template use File | Settings | File Templates.
|
||||
--%>
|
||||
<%@ page contentType="text/html;charset=gb2312" language="java" %>
|
||||
<%
|
||||
String path = request.getContextPath();
|
||||
String basePath = request.getScheme() + "://"
|
||||
+ request.getServerName() + ":" + request.getServerPort()
|
||||
+ path + "/";
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title><3E><><EFBFBD><EFBFBD>ת<EFBFBD><D7AA><EFBFBD><EFBFBD><EFBFBD>嵥<EFBFBD>ϴ<EFBFBD></title>
|
||||
<link rel="icon" href="../image/telephone.png" >
|
||||
<link rel="stylesheet" href="uploadPolicyData.css" >
|
||||
</head>
|
||||
<body>
|
||||
<p><3E><><EFBFBD><EFBFBD>ת<EFBFBD><D7AA><EFBFBD><EFBFBD><EFBFBD>嵥<EFBFBD>ϴ<EFBFBD></p>
|
||||
<hr>
|
||||
<form name="telSalePolicyDataUpload" method="post" action="<%=path%>/upload-policy-data" enctype="multipart/form-data" >
|
||||
<label><3E>ļ<EFBFBD>·<EFBFBD><C2B7><EFBFBD><EFBFBD><input type="file" name="data-file-name" size="30"></label>
|
||||
<input type="submit" name="upload" value="<22>ϴ<EFBFBD>">
|
||||
<input type="reset" name="reset" value="<22><><EFBFBD><EFBFBD>">
|
||||
</form>
|
||||
<!--<2D>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ-->
|
||||
<%
|
||||
int uploadCount = 0;
|
||||
int successedCount = 0;
|
||||
int failCount = 0;
|
||||
String resultText = "<p><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־</p>";
|
||||
|
||||
Object result = session.getAttribute( "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־" );
|
||||
|
||||
if ( result != null )
|
||||
{
|
||||
//uploadCount = (int)session.getAttribute( "<22>ϴ<EFBFBD><CFB4><EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>" );
|
||||
//successedCount = (int)session.getAttribute( "<22><><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD><C9B9><EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>" );
|
||||
//failCount = (int)session.getAttribute( "<22><><EFBFBD><EFBFBD>ʧ<EFBFBD>ܼ<EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>" );
|
||||
resultText = (String)session.getAttribute( "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־" );
|
||||
|
||||
%><div id="resultDiv" ><%
|
||||
}
|
||||
else
|
||||
{
|
||||
%><div id="resultDiv" style="display:none;" ><%
|
||||
}
|
||||
%>
|
||||
<%=resultText%>
|
||||
</div>
|
||||
<%
|
||||
session.removeAttribute( "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־" );
|
||||
%>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user