diff --git a/pom.xml b/pom.xml index a15b58d..7d3ae65 100644 --- a/pom.xml +++ b/pom.xml @@ -5,18 +5,18 @@ 4.0.0 ru.molokoin - exchange-servlet + exchange-service 0.1 war - exchange-servlet Maven Webapp + exchange-service - http://www.example.com + http://www.molokoin.ru/exchange UTF-8 - 1.7 - 1.7 + 11 + 11 @@ -30,16 +30,10 @@ jsp-api 2.1 - - junit - junit - 4.11 - test - - exchange-servlet + exchange-service diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index 56093df..4c95b57 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -3,7 +3,7 @@ "http://java.sun.com/dtd/web-app_2_3.dtd" > - exchange-servlet + exchange-service fileupload.jsp diff --git a/target/classes/ru/molokoin/FileDownloadServlet.class b/target/classes/ru/molokoin/FileDownloadServlet.class deleted file mode 100644 index 12e7515..0000000 Binary files a/target/classes/ru/molokoin/FileDownloadServlet.class and /dev/null differ diff --git a/target/classes/ru/molokoin/FileUploadServlet.class b/target/classes/ru/molokoin/FileUploadServlet.class deleted file mode 100644 index c774cb7..0000000 Binary files a/target/classes/ru/molokoin/FileUploadServlet.class and /dev/null differ diff --git a/target/classes/ru/molokoin/UploadDetail.class b/target/classes/ru/molokoin/UploadDetail.class deleted file mode 100644 index 9321f48..0000000 Binary files a/target/classes/ru/molokoin/UploadDetail.class and /dev/null differ diff --git a/target/classes/ru/molokoin/UploadedFilesServlet.class b/target/classes/ru/molokoin/UploadedFilesServlet.class deleted file mode 100644 index 880ffb4..0000000 Binary files a/target/classes/ru/molokoin/UploadedFilesServlet.class and /dev/null differ diff --git a/target/exchange-servlet.war b/target/exchange-servlet.war deleted file mode 100644 index 9216ac0..0000000 Binary files a/target/exchange-servlet.war and /dev/null differ diff --git a/target/exchange-servlet/WEB-INF/classes/ru/molokoin/FileDownloadServlet.class b/target/exchange-servlet/WEB-INF/classes/ru/molokoin/FileDownloadServlet.class deleted file mode 100644 index 9200c9d..0000000 Binary files a/target/exchange-servlet/WEB-INF/classes/ru/molokoin/FileDownloadServlet.class and /dev/null differ diff --git a/target/exchange-servlet/WEB-INF/classes/ru/molokoin/FileUploadServlet.class b/target/exchange-servlet/WEB-INF/classes/ru/molokoin/FileUploadServlet.class deleted file mode 100644 index 5a0f9ff..0000000 Binary files a/target/exchange-servlet/WEB-INF/classes/ru/molokoin/FileUploadServlet.class and /dev/null differ diff --git a/target/exchange-servlet/WEB-INF/classes/ru/molokoin/UploadDetail.class b/target/exchange-servlet/WEB-INF/classes/ru/molokoin/UploadDetail.class deleted file mode 100644 index 532953a..0000000 Binary files a/target/exchange-servlet/WEB-INF/classes/ru/molokoin/UploadDetail.class and /dev/null differ diff --git a/target/exchange-servlet/WEB-INF/classes/ru/molokoin/UploadedFilesServlet.class b/target/exchange-servlet/WEB-INF/classes/ru/molokoin/UploadedFilesServlet.class deleted file mode 100644 index cc372e2..0000000 Binary files a/target/exchange-servlet/WEB-INF/classes/ru/molokoin/UploadedFilesServlet.class and /dev/null differ diff --git a/target/exchange-servlet/WEB-INF/lib/javax.servlet-api-3.1.0.jar b/target/exchange-servlet/WEB-INF/lib/javax.servlet-api-3.1.0.jar deleted file mode 100644 index 6b14c3d..0000000 Binary files a/target/exchange-servlet/WEB-INF/lib/javax.servlet-api-3.1.0.jar and /dev/null differ diff --git a/target/exchange-servlet/WEB-INF/lib/jsp-api-2.1.jar b/target/exchange-servlet/WEB-INF/lib/jsp-api-2.1.jar deleted file mode 100644 index c0195af..0000000 Binary files a/target/exchange-servlet/WEB-INF/lib/jsp-api-2.1.jar and /dev/null differ diff --git a/target/exchange-servlet/WEB-INF/web.xml b/target/exchange-servlet/WEB-INF/web.xml deleted file mode 100644 index 56093df..0000000 --- a/target/exchange-servlet/WEB-INF/web.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - exchange-servlet - - fileupload.jsp - - diff --git a/target/exchange-servlet/allfiles.jsp b/target/exchange-servlet/allfiles.jsp deleted file mode 100644 index 103b375..0000000 --- a/target/exchange-servlet/allfiles.jsp +++ /dev/null @@ -1,42 +0,0 @@ -<%@page import="java.util.List"%> -<%@page import="ru.molokoin.UploadDetail"%> -<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> - - - - - exchange-servlet - - - - -
-

Uploaded Files

- - - - - - <% List uploadDetails = (List)request.getAttribute("uploadedFiles"); - if(uploadDetails != null && uploadDetails.size() > 0) { - for(int i=0; i - - - - - - <% } - } else { %> - - - - <% } %> - -
File NameFile SizeAction
<%=uploadDetails.get(i).getFileName() %><%=uploadDetails.get(i).getFileSize() %> KBDownload
No Files Uploaded.....!
-
- Back -
-
- - \ No newline at end of file diff --git a/target/exchange-servlet/fileupload.jsp b/target/exchange-servlet/fileupload.jsp deleted file mode 100644 index 17a6692..0000000 --- a/target/exchange-servlet/fileupload.jsp +++ /dev/null @@ -1,28 +0,0 @@ -<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> - - - - - exchange-servlet - - - - -
-

File Upload

-

Press 'CTRL' Key+Click On File To Select Multiple Files in Open Dialog

-
-
- : - Please Upload A File! -
- -
-
- - - - - \ No newline at end of file diff --git a/target/exchange-servlet/fileuploadResponse.jsp b/target/exchange-servlet/fileuploadResponse.jsp deleted file mode 100644 index 1d848d3..0000000 --- a/target/exchange-servlet/fileuploadResponse.jsp +++ /dev/null @@ -1,37 +0,0 @@ -<%@page import="java.util.List"%> -<%@page import="ru.molokoin.UploadDetail"%> -<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> - - - - - exchange-servlet - - - - -
-

File Upload Status

- - - - - - <% List uploadDetails = (List)request.getAttribute("uploadedFiles"); - for(int i=0; i - - - - - - - <% } %> - -
File NameFile SizeUpload StatusAction
<%=uploadDetails.get(i).getFileName() %><%=uploadDetails.get(i).getFileSize() %> KB<%=uploadDetails.get(i).getUploadStatus() %>Download
-
- Back -
-
- - \ No newline at end of file diff --git a/target/exchange-servlet/resource/css/main.css b/target/exchange-servlet/resource/css/main.css deleted file mode 100644 index 2150a5e..0000000 --- a/target/exchange-servlet/resource/css/main.css +++ /dev/null @@ -1,73 +0,0 @@ -* { - box-sizing: border-box; -} - -.margin_top_15px { - margin-top: 15px; -} - -.panel { - display: block; - padding: 15px; - border: 1px solid #c0c0c0; - width: 849px; - margin: 52px 0px 0px 32px; -} - -label { - display: inline-block; - margin-bottom: 5px; -} - -.form_group { - margin: 10px; -} - -.btn_primary { - color: #fff; - background-color: #0275d8; - border-color: #0275d8; -} - -.btn { - display: inline-block; - padding: 10px; - text-align: center; - white-space: nowrap; - vertical-align: middle; - cursor: pointer; - border: 1px solid transparent; -} - -.input_error { - color: #DE3330; - padding: 5px; -} - -.bordered_table { - border-collapse: collapse; - width: 100%; - table-layout: fixed; -} - -.bordered_table tr,th,td { - border: 1px solid #333; -} - -.bordered_table th,td { - padding: 5px; -} - -.bordered_table td { - word-wrap: break-word; -} - -#noFiles { - color: red; - font-size: larger; -} - -.hyperLink { - text-decoration: none; - cursor: pointer; -} \ No newline at end of file diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties deleted file mode 100644 index 5be42b9..0000000 --- a/target/maven-archiver/pom.properties +++ /dev/null @@ -1,4 +0,0 @@ -#Created by Apache Maven 3.8.5 -groupId=ru.molokoin -artifactId=exchange-servlet -version=0.1 diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst deleted file mode 100644 index db13f4a..0000000 --- a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +++ /dev/null @@ -1,4 +0,0 @@ -ru\molokoin\FileUploadServlet.class -ru\molokoin\UploadDetail.class -ru\molokoin\FileDownloadServlet.class -ru\molokoin\UploadedFilesServlet.class diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst deleted file mode 100644 index bad9611..0000000 --- a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +++ /dev/null @@ -1,4 +0,0 @@ -c:\Users\Strannik\Documents\esoe\code\exchange-servlet\src\main\java\ru\molokoin\UploadDetail.java -c:\Users\Strannik\Documents\esoe\code\exchange-servlet\src\main\java\ru\molokoin\FileUploadServlet.java -c:\Users\Strannik\Documents\esoe\code\exchange-servlet\src\main\java\ru\molokoin\UploadedFilesServlet.java -c:\Users\Strannik\Documents\esoe\code\exchange-servlet\src\main\java\ru\molokoin\FileDownloadServlet.java