├── README.md ├── build.xml ├── build └── web │ ├── 404error.jsp │ ├── 500error.jsp │ ├── META-INF │ ├── MANIFEST.MF │ └── context.xml │ ├── WEB-INF │ ├── classes │ │ ├── .netbeans_automatic_build │ │ ├── .netbeans_update_resources │ │ ├── bca │ │ │ └── fts │ │ │ │ ├── controller │ │ │ │ ├── AddBranchServlet.class │ │ │ │ ├── AddFileServlet.class │ │ │ │ ├── AddFileTypeServlet.class │ │ │ │ ├── AdminAutocomplete.class │ │ │ │ ├── AdminCloseFiles$1.class │ │ │ │ ├── AdminCloseFiles.class │ │ │ │ ├── AdminLoginServlet.class │ │ │ │ ├── AdminPasswdChng.class │ │ │ │ ├── AdminPendingFiles$1.class │ │ │ │ ├── AdminPendingFiles.class │ │ │ │ ├── AdminProcessFiles$1.class │ │ │ │ ├── AdminProcessFiles.class │ │ │ │ ├── AdminRegisFiles.class │ │ │ │ ├── AdminRegistration.class │ │ │ │ ├── AdminRejectFiles$1.class │ │ │ │ ├── AdminRejectFiles.class │ │ │ │ ├── BranchAutocomplete.class │ │ │ │ ├── BranchLoginServlet.class │ │ │ │ ├── BranchPassChange.class │ │ │ │ ├── BranchRecordsAdmin.class │ │ │ │ ├── ChangeFileStatus.class │ │ │ │ ├── DeleteBranchServlet.class │ │ │ │ ├── DeleteFileType.class │ │ │ │ ├── DispatchFileServlet.class │ │ │ │ ├── GetFileRecord.class │ │ │ │ ├── IDServlet.class │ │ │ │ ├── ListRegFilesBranch.class │ │ │ │ ├── LoadFileType.class │ │ │ │ ├── LoadFileTypeBranch.class │ │ │ │ ├── LoadIncomingFiles$1.class │ │ │ │ ├── LoadIncomingFiles.class │ │ │ │ ├── LogoutServlet.class │ │ │ │ ├── ModifyBranchData.class │ │ │ │ ├── NotificationServlet.class │ │ │ │ ├── RecieveFileServlet.class │ │ │ │ ├── RejectFileServlet.class │ │ │ │ ├── TrackByBranchAdmin.class │ │ │ │ ├── TrackByDoRAdmin.class │ │ │ │ ├── TrackByDoSAdmin.class │ │ │ │ ├── TrackIdAdmin.class │ │ │ │ ├── TrackNameAdmin.class │ │ │ │ ├── TrackNoAdmin.class │ │ │ │ ├── TrackStatusAdmin.class │ │ │ │ ├── TrackWithDor.class │ │ │ │ ├── TrackWithDos.class │ │ │ │ ├── TrackWithIDBranch.class │ │ │ │ ├── TrackWithName.class │ │ │ │ ├── TrackWithNo.class │ │ │ │ ├── UpdateBranchServlet.class │ │ │ │ ├── UpdateFileRecord.class │ │ │ │ ├── ViewSentFiles$1.class │ │ │ │ └── ViewSentFiles.class │ │ │ │ ├── dao │ │ │ │ ├── AdminFileTrackDao.class │ │ │ │ ├── AdminLoginCheckDao.class │ │ │ │ ├── AdminReportsDao.class │ │ │ │ ├── BranchDao.class │ │ │ │ ├── BranchFileTrackDao.class │ │ │ │ ├── BranchLoginCheckDao.class │ │ │ │ ├── BranchReportDao.class │ │ │ │ ├── FileDao.class │ │ │ │ ├── IDDao.class │ │ │ │ └── NotificationDao.class │ │ │ │ ├── model │ │ │ │ ├── AdminBean.class │ │ │ │ ├── BranchBean.class │ │ │ │ ├── ClosedFileBean.class │ │ │ │ ├── FileBean.class │ │ │ │ ├── IncomingFileBean.class │ │ │ │ ├── ProcessingFileBean.class │ │ │ │ ├── SendFileBean.class │ │ │ │ ├── TrackFileBean.class │ │ │ │ └── UserBean.class │ │ │ │ └── util │ │ │ │ ├── AdminAccountFilter.class │ │ │ │ ├── AdminFilter.class │ │ │ │ ├── ApplicationtListener.class │ │ │ │ ├── BranchFilter.class │ │ │ │ ├── DatabaseConnector.class │ │ │ │ ├── DateValidator.class │ │ │ │ ├── PasswordValidator.class │ │ │ │ └── SessionListener.class │ │ ├── displaytag.properties │ │ └── log4j.properties │ ├── lib │ │ ├── commons-beanutils-1.7.0.jar │ │ ├── commons-codec-1.5.jar │ │ ├── commons-collections-3.1.jar │ │ ├── commons-lang-2.3.jar │ │ ├── displaytag-1.2.jar │ │ ├── displaytag-export-poi-1.2.jar │ │ ├── displaytag-portlet-1.2.jar │ │ ├── gson-2.2.2.jar │ │ ├── itext-1.3.jar │ │ ├── jcl104-over-slf4j-1.4.2.jar │ │ ├── jstl-api.jar │ │ ├── jstl-impl.jar │ │ ├── log4j-1.2.17.jar │ │ ├── mysql-connector-java-5.1.23-bin.jar │ │ ├── poi-3.2-FINAL.jar │ │ ├── slf4j-api-1.4.2.jar │ │ └── slf4j-log4j12-1.4.2.jar │ ├── tags │ │ └── showFileData.tag │ └── web.xml │ ├── admin │ ├── index.jsp │ ├── install.jsp │ └── pages │ │ ├── addFileType.jsp │ │ ├── branchList.jsp │ │ ├── branchRegister.jsp │ │ ├── changePassword.jsp │ │ ├── closedFiles.jsp │ │ ├── navGeneral.html │ │ ├── navReport.html │ │ ├── navSearch.html │ │ ├── pendingFiles.jsp │ │ ├── processingFiles.jsp │ │ ├── registeredFiles.jsp │ │ ├── rejectedFiles.jsp │ │ ├── reportsAdmin.jsp │ │ ├── showBranchRecord.jsp │ │ ├── trackByBranch.jsp │ │ ├── trackByStatus.jsp │ │ ├── trackDoRAdmin.jsp │ │ ├── trackDoSAdmin.jsp │ │ ├── trackFile.jsp │ │ ├── trackIdAdmin.jsp │ │ ├── trackNameAdmin.jsp │ │ ├── trackNoAdmin.jsp │ │ └── welcomeAdmin.jsp │ ├── branch │ ├── branchInbox.jsp │ ├── fileEdit.jsp │ ├── fileRegister.jsp │ ├── messageToBranch.jsp │ ├── navGeneral.html │ ├── navSearch.html │ ├── passChange.jsp │ ├── regFileList.jsp │ ├── sentFiles.jsp │ ├── trackFile.jsp │ ├── trackWithDoR.jsp │ ├── trackWithDoS.jsp │ ├── trackWithID.jsp │ ├── trackWithName.jsp │ ├── trackWithNo.jsp │ └── welcomeBranch.jsp │ ├── css │ ├── displaytag.css │ ├── jquery-ui.css │ ├── print.css │ └── style.css │ ├── formNotice.html │ ├── header.html │ ├── img │ ├── find.png │ ├── fts.jpeg │ ├── help.png │ ├── ico_file_csv.png │ ├── ico_file_excel.png │ ├── ico_file_pdf.png │ ├── ico_file_rtf.png │ ├── ico_file_xml.png │ ├── keys.png │ └── lock_open.png │ ├── index.jsp │ └── js │ ├── adminAjax.js │ ├── adminJS.js │ ├── branchAjax.js │ ├── branchJS.js │ ├── jquery-ui.min.js │ └── jquery.js ├── dist └── FTS.war ├── nbproject ├── ant-deploy.xml ├── build-impl.xml ├── genfiles.properties ├── private │ ├── private.properties │ └── private.xml ├── project.properties └── project.xml ├── snapshots ├── pic1.jpg ├── pic2.jpg ├── pic3.jpg └── pic4.jpg ├── src ├── conf │ └── MANIFEST.MF └── java │ ├── bca │ └── fts │ │ ├── controller │ │ ├── AddBranchServlet.java │ │ ├── AddFileServlet.java │ │ ├── AddFileTypeServlet.java │ │ ├── AdminAutocomplete.java │ │ ├── AdminCloseFiles.java │ │ ├── AdminLoginServlet.java │ │ ├── AdminPasswdChng.java │ │ ├── AdminPendingFiles.java │ │ ├── AdminProcessFiles.java │ │ ├── AdminRegisFiles.java │ │ ├── AdminRegistration.java │ │ ├── AdminRejectFiles.java │ │ ├── BranchAutocomplete.java │ │ ├── BranchLoginServlet.java │ │ ├── BranchPassChange.java │ │ ├── BranchRecordsAdmin.java │ │ ├── ChangeFileStatus.java │ │ ├── DeleteBranchServlet.java │ │ ├── DeleteFileType.java │ │ ├── DispatchFileServlet.java │ │ ├── GetFileRecord.java │ │ ├── IDServlet.java │ │ ├── ListRegFilesBranch.java │ │ ├── LoadFileType.java │ │ ├── LoadFileTypeBranch.java │ │ ├── LoadIncomingFiles.java │ │ ├── LogoutServlet.java │ │ ├── ModifyBranchData.java │ │ ├── NotificationServlet.java │ │ ├── RecieveFileServlet.java │ │ ├── RejectFileServlet.java │ │ ├── TrackByBranchAdmin.java │ │ ├── TrackByDoRAdmin.java │ │ ├── TrackByDoSAdmin.java │ │ ├── TrackIdAdmin.java │ │ ├── TrackNameAdmin.java │ │ ├── TrackNoAdmin.java │ │ ├── TrackStatusAdmin.java │ │ ├── TrackWithDor.java │ │ ├── TrackWithDos.java │ │ ├── TrackWithIDBranch.java │ │ ├── TrackWithName.java │ │ ├── TrackWithNo.java │ │ ├── UpdateBranchServlet.java │ │ ├── UpdateFileRecord.java │ │ └── ViewSentFiles.java │ │ ├── dao │ │ ├── AdminFileTrackDao.java │ │ ├── AdminLoginCheckDao.java │ │ ├── AdminReportsDao.java │ │ ├── BranchDao.java │ │ ├── BranchFileTrackDao.java │ │ ├── BranchLoginCheckDao.java │ │ ├── BranchReportDao.java │ │ ├── FileDao.java │ │ ├── IDDao.java │ │ └── NotificationDao.java │ │ ├── model │ │ ├── AdminBean.java │ │ ├── BranchBean.java │ │ ├── ClosedFileBean.java │ │ ├── FileBean.java │ │ ├── IncomingFileBean.java │ │ ├── ProcessingFileBean.java │ │ ├── SendFileBean.java │ │ ├── TrackFileBean.java │ │ └── UserBean.java │ │ └── util │ │ ├── AdminAccountFilter.java │ │ ├── AdminFilter.java │ │ ├── ApplicationtListener.java │ │ ├── BranchFilter.java │ │ ├── DatabaseConnector.java │ │ ├── DateValidator.java │ │ ├── PasswordValidator.java │ │ └── SessionListener.java │ ├── displaytag.properties │ └── log4j.properties └── web ├── 404error.jsp ├── 500error.jsp ├── META-INF └── context.xml ├── WEB-INF ├── tags │ └── showFileData.tag └── web.xml ├── admin ├── index.jsp ├── install.jsp └── pages │ ├── addFileType.jsp │ ├── branchList.jsp │ ├── branchRegister.jsp │ ├── changePassword.jsp │ ├── closedFiles.jsp │ ├── navGeneral.html │ ├── navReport.html │ ├── navSearch.html │ ├── pendingFiles.jsp │ ├── processingFiles.jsp │ ├── registeredFiles.jsp │ ├── rejectedFiles.jsp │ ├── reportsAdmin.jsp │ ├── showBranchRecord.jsp │ ├── trackByBranch.jsp │ ├── trackByStatus.jsp │ ├── trackDoRAdmin.jsp │ ├── trackDoSAdmin.jsp │ ├── trackFile.jsp │ ├── trackIdAdmin.jsp │ ├── trackNameAdmin.jsp │ ├── trackNoAdmin.jsp │ └── welcomeAdmin.jsp ├── branch ├── branchInbox.jsp ├── fileEdit.jsp ├── fileRegister.jsp ├── messageToBranch.jsp ├── navGeneral.html ├── navSearch.html ├── passChange.jsp ├── regFileList.jsp ├── sentFiles.jsp ├── trackFile.jsp ├── trackWithDoR.jsp ├── trackWithDoS.jsp ├── trackWithID.jsp ├── trackWithName.jsp ├── trackWithNo.jsp └── welcomeBranch.jsp ├── css ├── displaytag.css ├── jquery-ui.css ├── print.css └── style.css ├── formNotice.html ├── header.html ├── img ├── find.png ├── fts.jpeg ├── help.png ├── ico_file_csv.png ├── ico_file_excel.png ├── ico_file_pdf.png ├── ico_file_rtf.png ├── ico_file_xml.png ├── keys.png └── lock_open.png ├── index.jsp └── js ├── adminAjax.js ├── adminJS.js ├── branchAjax.js ├── branchJS.js ├── jquery-ui.min.js └── jquery.js /README.md: -------------------------------------------------------------------------------- 1 | # File Tracking System 2 | 3 | FTS is a JAVA EE web application that keeps track of all the files that move 4 | around different offices/departments of an organisation until they reach their 5 | destination. Every department needs to register the arrival and departure of files. 6 | When anyone searches for a file in FTS, it then displays the track of the file’s 7 | movement in a graphical format. 8 | -------------------------------------------------------------------------------- /build/web/404error.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 404 Error 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 |
21 |

HTTP 404 Error: Page Not Found!

22 | 23 |

24 | We are really sorry, But the page or resource you are looking for cannot not be found. 25 |

26 |
27 |
28 | 29 |

30 | 31 | 32 | 33 | 34 | Go Back to Home 35 | 36 | 37 | 38 | Go Back to Home 39 | 40 | 41 | 42 | Go Back to Home page 43 | 44 | 45 | 46 | 47 |

48 |
49 | 50 |
51 | 52 | 53 | -------------------------------------------------------------------------------- /build/web/500error.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 500 Error 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 |
21 |

HTTP 500 Error: Internal Server Error!

22 | 23 |

24 | The server encountered an error while fulfilling your request. Please contact the webmaster.
25 | We are really sorry for the inconvenience. 26 |

27 | 28 |

29 | Error message form the server: ${ pageContext.exception }
30 |

31 |
32 |
33 | 34 |

35 | 36 | 37 | 38 | 39 | Go Back to Home 40 | 41 | 42 | 43 | Go Back to Home 44 | 45 | 46 | 47 | Go Back to Home page 48 | 49 | 50 | 51 | 52 |

53 | 54 |
55 |
56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /build/web/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | 3 | -------------------------------------------------------------------------------- /build/web/META-INF/context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/.netbeans_automatic_build: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/.netbeans_automatic_build -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/.netbeans_update_resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/.netbeans_update_resources -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/AddBranchServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/AddBranchServlet.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/AddFileServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/AddFileServlet.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/AddFileTypeServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/AddFileTypeServlet.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/AdminAutocomplete.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/AdminAutocomplete.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/AdminCloseFiles$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/AdminCloseFiles$1.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/AdminCloseFiles.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/AdminCloseFiles.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/AdminLoginServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/AdminLoginServlet.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/AdminPasswdChng.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/AdminPasswdChng.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/AdminPendingFiles$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/AdminPendingFiles$1.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/AdminPendingFiles.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/AdminPendingFiles.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/AdminProcessFiles$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/AdminProcessFiles$1.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/AdminProcessFiles.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/AdminProcessFiles.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/AdminRegisFiles.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/AdminRegisFiles.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/AdminRegistration.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/AdminRegistration.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/AdminRejectFiles$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/AdminRejectFiles$1.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/AdminRejectFiles.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/AdminRejectFiles.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/BranchAutocomplete.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/BranchAutocomplete.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/BranchLoginServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/BranchLoginServlet.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/BranchPassChange.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/BranchPassChange.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/BranchRecordsAdmin.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/BranchRecordsAdmin.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/ChangeFileStatus.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/ChangeFileStatus.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/DeleteBranchServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/DeleteBranchServlet.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/DeleteFileType.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/DeleteFileType.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/DispatchFileServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/DispatchFileServlet.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/GetFileRecord.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/GetFileRecord.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/IDServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/IDServlet.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/ListRegFilesBranch.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/ListRegFilesBranch.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/LoadFileType.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/LoadFileType.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/LoadFileTypeBranch.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/LoadFileTypeBranch.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/LoadIncomingFiles$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/LoadIncomingFiles$1.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/LoadIncomingFiles.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/LoadIncomingFiles.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/LogoutServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/LogoutServlet.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/ModifyBranchData.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/ModifyBranchData.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/NotificationServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/NotificationServlet.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/RecieveFileServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/RecieveFileServlet.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/RejectFileServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/RejectFileServlet.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/TrackByBranchAdmin.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/TrackByBranchAdmin.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/TrackByDoRAdmin.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/TrackByDoRAdmin.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/TrackByDoSAdmin.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/TrackByDoSAdmin.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/TrackIdAdmin.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/TrackIdAdmin.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/TrackNameAdmin.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/TrackNameAdmin.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/TrackNoAdmin.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/TrackNoAdmin.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/TrackStatusAdmin.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/TrackStatusAdmin.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/TrackWithDor.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/TrackWithDor.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/TrackWithDos.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/TrackWithDos.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/TrackWithIDBranch.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/TrackWithIDBranch.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/TrackWithName.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/TrackWithName.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/TrackWithNo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/TrackWithNo.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/UpdateBranchServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/UpdateBranchServlet.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/UpdateFileRecord.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/UpdateFileRecord.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/ViewSentFiles$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/ViewSentFiles$1.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/controller/ViewSentFiles.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/controller/ViewSentFiles.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/dao/AdminFileTrackDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/dao/AdminFileTrackDao.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/dao/AdminLoginCheckDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/dao/AdminLoginCheckDao.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/dao/AdminReportsDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/dao/AdminReportsDao.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/dao/BranchDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/dao/BranchDao.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/dao/BranchFileTrackDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/dao/BranchFileTrackDao.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/dao/BranchLoginCheckDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/dao/BranchLoginCheckDao.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/dao/BranchReportDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/dao/BranchReportDao.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/dao/FileDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/dao/FileDao.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/dao/IDDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/dao/IDDao.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/dao/NotificationDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/dao/NotificationDao.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/model/AdminBean.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/model/AdminBean.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/model/BranchBean.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/model/BranchBean.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/model/ClosedFileBean.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/model/ClosedFileBean.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/model/FileBean.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/model/FileBean.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/model/IncomingFileBean.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/model/IncomingFileBean.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/model/ProcessingFileBean.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/model/ProcessingFileBean.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/model/SendFileBean.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/model/SendFileBean.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/model/TrackFileBean.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/model/TrackFileBean.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/model/UserBean.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/model/UserBean.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/util/AdminAccountFilter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/util/AdminAccountFilter.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/util/AdminFilter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/util/AdminFilter.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/util/ApplicationtListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/util/ApplicationtListener.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/util/BranchFilter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/util/BranchFilter.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/util/DatabaseConnector.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/util/DatabaseConnector.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/util/DateValidator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/util/DateValidator.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/util/PasswordValidator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/util/PasswordValidator.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/bca/fts/util/SessionListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/classes/bca/fts/util/SessionListener.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/displaytag.properties: -------------------------------------------------------------------------------- 1 | export.types=csv excel xml pdf rtf 2 | export.excel=true 3 | export.csv=true 4 | export.xml=true 5 | export.pdf=true 6 | export.rtf=true 7 | export.amount=page 8 | export.excel.class=org.displaytag.export.excel.DefaultHssfExportView 9 | export.pdf.class=org.displaytag.export.DefaultPdfExportView 10 | export.rtf.class=org.displaytag.export.DefaultRtfExportView -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/log4j.properties: -------------------------------------------------------------------------------- 1 | # defining the root logger with two appender 2 | log4j.rootLogger=INFO, infoApp, errorApp 3 | 4 | # Configuration of the infoApp appender. It will log at log level INFO and WARN 5 | 6 | log4j.appender.infoApp=org.apache.log4j.DailyRollingFileAppender 7 | log4j.appender.infoApp.File=FTS/info_log.log 8 | log4j.appender.infoApp.Threshold=INFO 9 | log4j.appender.infoApp.DatePattern='.' yyyy-MM-dd 10 | 11 | # a filter is used to filtering out ERROR and FATAL 12 | log4j.appender.infoApp.filter.a=org.apache.log4j.varia.LevelRangeFilter 13 | log4j.appender.infoApp.filter.a.LevelMin=INFO 14 | log4j.appender.infoApp.filter.a.LevelMax=WARN 15 | log4j.appender.infoApp.filter.a.AcceptOnMatch=true 16 | 17 | log4j.appender.infoApp.layout=org.apache.log4j.PatternLayout 18 | log4j.appender.infoApp.layout.ConversionPattern=%d{dd-MM-yyyy, HH:mm:ss} %p %C.%M:%L :: %m%n 19 | 20 | 21 | # Configuration of the errorApp appender. It will log at log level ERROR and FATAL 22 | 23 | log4j.appender.errorApp=org.apache.log4j.DailyRollingFileAppender 24 | log4j.appender.errorApp.Threshold=ERROR 25 | log4j.appender.errorApp.File=FTS/debug_log.log 26 | log4j.appender.errorApp.DatePattern='.' yyyy-MM-dd 27 | log4j.appender.errorApp.layout=org.apache.log4j.PatternLayout 28 | log4j.appender.errorApp.layout.ConversionPattern=%d{dd-MM-yyyy HH:mm:ss} %p %C.%M:%L :: %m%n 29 | -------------------------------------------------------------------------------- /build/web/WEB-INF/lib/commons-beanutils-1.7.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/lib/commons-beanutils-1.7.0.jar -------------------------------------------------------------------------------- /build/web/WEB-INF/lib/commons-codec-1.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/lib/commons-codec-1.5.jar -------------------------------------------------------------------------------- /build/web/WEB-INF/lib/commons-collections-3.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/lib/commons-collections-3.1.jar -------------------------------------------------------------------------------- /build/web/WEB-INF/lib/commons-lang-2.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/lib/commons-lang-2.3.jar -------------------------------------------------------------------------------- /build/web/WEB-INF/lib/displaytag-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/lib/displaytag-1.2.jar -------------------------------------------------------------------------------- /build/web/WEB-INF/lib/displaytag-export-poi-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/lib/displaytag-export-poi-1.2.jar -------------------------------------------------------------------------------- /build/web/WEB-INF/lib/displaytag-portlet-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/lib/displaytag-portlet-1.2.jar -------------------------------------------------------------------------------- /build/web/WEB-INF/lib/gson-2.2.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/lib/gson-2.2.2.jar -------------------------------------------------------------------------------- /build/web/WEB-INF/lib/itext-1.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/lib/itext-1.3.jar -------------------------------------------------------------------------------- /build/web/WEB-INF/lib/jcl104-over-slf4j-1.4.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/lib/jcl104-over-slf4j-1.4.2.jar -------------------------------------------------------------------------------- /build/web/WEB-INF/lib/jstl-api.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/lib/jstl-api.jar -------------------------------------------------------------------------------- /build/web/WEB-INF/lib/jstl-impl.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/lib/jstl-impl.jar -------------------------------------------------------------------------------- /build/web/WEB-INF/lib/log4j-1.2.17.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/lib/log4j-1.2.17.jar -------------------------------------------------------------------------------- /build/web/WEB-INF/lib/mysql-connector-java-5.1.23-bin.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/lib/mysql-connector-java-5.1.23-bin.jar -------------------------------------------------------------------------------- /build/web/WEB-INF/lib/poi-3.2-FINAL.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/lib/poi-3.2-FINAL.jar -------------------------------------------------------------------------------- /build/web/WEB-INF/lib/slf4j-api-1.4.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/lib/slf4j-api-1.4.2.jar -------------------------------------------------------------------------------- /build/web/WEB-INF/lib/slf4j-log4j12-1.4.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/WEB-INF/lib/slf4j-log4j12-1.4.2.jar -------------------------------------------------------------------------------- /build/web/WEB-INF/tags/showFileData.tag: -------------------------------------------------------------------------------- 1 | <%@tag description="Displays file-track record" pageEncoding="UTF-8"%> 2 | <%@tag import="java.util.Arrays" %> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | <% 18 | 19 | String[] dates = (String[]) request.getAttribute("dates"); 20 | String[] path = (String[]) request.getAttribute("path"); 21 | String[] rDates = ( String[] ) request.getAttribute( "rDates"); 22 | 23 | String recieveDates = "Not recieved yet"; 24 | 25 | // While displaying "recieve dates", elements should be counted from index[1] 26 | 27 | for ( int i = 0; i < dates.length; i++ ) { 28 | 29 | %> 30 | 31 | 32 | 33 | 34 | 35 | 49 | 50 | 51 | 52 | <% 53 | } 54 | %> 55 | 56 | 57 | 58 |
SENDER BRANCH DATE-OF-SEND FORWARD-TO-BRANCH DATE-OF-RECEIVE
<%= path[i] %> <%= dates[i] %> <%= path[i + 1] %> 36 | 37 | 38 | if( i + 1 == rDates.length ) { 39 | recieveDates = "Not recieved yet"; 40 | } 41 | else { 42 | recieveDates = rDates[ i + 1 ]; 43 | } 44 | 45 | 46 | <%= recieveDates %> 47 | 48 |
-------------------------------------------------------------------------------- /build/web/admin/index.jsp: -------------------------------------------------------------------------------- 1 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 2 | 3 | <%-- Don't create session for this page, let the session to create after successful login --%> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Admin Login Page 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 |
24 | 25 |
${requestScope.message}
26 |
${requestScope.errorMessage}
27 | 28 |
29 |
30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 50 | 51 | 52 | 53 |
Administrator Login Panel
Username:    
  
Password:    
Login 48 | 49 | Login
54 |
55 | 56 |
57 | 58 |
59 | 60 | 61 | -------------------------------------------------------------------------------- /build/web/admin/install.jsp: -------------------------------------------------------------------------------- 1 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 2 | 3 | <%-- Don't create session for this page, let the session to create after successful login --%> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | Admin Registration Page 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 |
27 | 28 |

29 | Password must be of at least 8 characters, must contain at least one alphabet, one digit and one special character 30 |

31 |
32 | 33 |
${requestScope.errorMessage}
34 | 35 |
36 |
37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 58 | 61 | 62 | 63 |
Create The Administrator Account...
Username:    
Password:    
Confirm Password:    
56 | 57 | 59 | 60 |
64 | 65 |
66 | 67 |
68 | 69 |
70 | 71 |
72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /build/web/admin/pages/branchList.jsp: -------------------------------------------------------------------------------- 1 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 2 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 3 | <%@taglib uri="http://displaytag.sf.net" prefix="display" %> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | Branch Report Page 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
32 | 33 |
34 | 35 | 36 | 37 | List of Registered Branch... 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 |
46 | 47 | 48 |
49 | 50 |
51 | 52 | 53 |
54 | 55 | 56 |
57 | 58 |
59 | 60 |
61 | 62 |
63 | 64 |
65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /build/web/admin/pages/changePassword.jsp: -------------------------------------------------------------------------------- 1 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 8 | Admin Password Change Page 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 |
24 | 25 |

26 | Password must be of at least 8 characters, must contain at least one alphabet, one digit and one special character 27 |

28 |
29 | 30 |
${requestScope.errorMessage}
31 | 32 |
33 | 34 |
35 | 36 | 37 | 38 | 39 | 40 | 41 | 44 | 45 | 46 | 47 | 50 | 51 | 52 | 53 | 56 | 57 | 58 | 59 | 63 | 64 | 65 |
Change Admin Password
Enter Old Password: 42 |    43 |
Enter New Password: 48 |    49 |
Confirm New Password: 54 |    55 |
60 |   61 | 62 |
66 | 67 |
68 | 69 |
70 | 71 |
72 | 73 |
74 | 75 | 76 | 77 | -------------------------------------------------------------------------------- /build/web/admin/pages/closedFiles.jsp: -------------------------------------------------------------------------------- 1 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 2 | <%@taglib uri="http://displaytag.sf.net" prefix="display" %> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Closed Files Page 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 |
30 | 31 |
32 | 33 | 34 | List of Closed Files... 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 |
56 | 57 |
58 | 59 |
60 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /build/web/admin/pages/navGeneral.html: -------------------------------------------------------------------------------- 1 |
2 | | Back to My Account 3 | 4 |
5 |
6 | 7 | -------------------------------------------------------------------------------- /build/web/admin/pages/navReport.html: -------------------------------------------------------------------------------- 1 | 9 | 10 | -------------------------------------------------------------------------------- /build/web/admin/pages/navSearch.html: -------------------------------------------------------------------------------- 1 | 8 | 9 | -------------------------------------------------------------------------------- /build/web/admin/pages/pendingFiles.jsp: -------------------------------------------------------------------------------- 1 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 2 | <%@taglib uri="http://displaytag.sf.net" prefix="display" %> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Pending Files Page 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 |
30 | 31 |
32 | 33 | 34 | List of Pending Files... 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 |
53 | 54 |
55 | 56 |
57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /build/web/admin/pages/processingFiles.jsp: -------------------------------------------------------------------------------- 1 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 2 | <%@taglib uri="http://displaytag.sf.net" prefix="display" %> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | Processing Files Page 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 |
30 | 31 |
32 | 33 | 34 | 35 | List of Processing Files... 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 |
57 | 58 |
59 | 60 |
61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /build/web/admin/pages/rejectedFiles.jsp: -------------------------------------------------------------------------------- 1 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 2 | <%@taglib uri="http://displaytag.sf.net" prefix="display" %> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Rejected Files Page 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 |
30 | 31 |
32 | 33 | 34 | 35 | List of Rejected Files... 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 |
55 | 56 |
57 | 58 |
59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /build/web/admin/pages/reportsAdmin.jsp: -------------------------------------------------------------------------------- 1 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Admin Reports Page 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 |
22 | 23 |
${ requestScope.errorMessage }
24 |
25 | 26 |

Generating Reports for Admin...

27 | 28 |
29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 |
View The Report Of
List of Registered Files
List of Pending Files
List of Rejected Files
List of Processing Files
List of Closed Files
60 | 61 | 62 |
63 | 64 | 65 | 66 |
67 | 68 |
69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /build/web/admin/pages/trackFile.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | Track File Page 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 |
23 | 24 |
25 | 26 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 |
27 | 28 | search file Choose your option.. 29 | 30 |
Track file by file ID
Track file by file no
Track file by file name
Track file by file-status
Track file by branch
Track file by date of send
Track file by date of receive
54 | 55 |
56 | 57 |
58 | 59 |
60 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /build/web/admin/pages/welcomeAdmin.jsp: -------------------------------------------------------------------------------- 1 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 2 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Admin Welcome Page 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 32 | 33 |
34 |

Welcome Admin-  

35 |
36 | 37 |

38 | ${requestScope.message} 39 | ${requestScope.errorMessage} 40 |

41 |
42 | 43 |
44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /build/web/branch/messageToBranch.jsp: -------------------------------------------------------------------------------- 1 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Successful File Registration 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 26 | 27 |
28 | 29 |
30 |
31 | 32 |

33 | 34 | File NO:   ${ requestScope.fileBean.no}
35 | File Name:   ${ requestScope.fileBean["name"] }


36 | 37 | -- has been registered successfully.

38 | The corresponding file ID is: ${ requestScope.fileBean.id } 39 |
40 |

41 | 42 |
43 | 44 |
45 | 46 |
47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /build/web/branch/navGeneral.html: -------------------------------------------------------------------------------- 1 |
2 | | Back to My Account 3 | 4 |
5 |
6 | 7 | -------------------------------------------------------------------------------- /build/web/branch/navSearch.html: -------------------------------------------------------------------------------- 1 | 8 | 9 | -------------------------------------------------------------------------------- /build/web/branch/trackFile.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Track File Page 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 |
22 | 23 |
24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 |
26 | 27 | search file Choose your option.. 28 | 29 |
Track file by file ID
Track file by file no
Track file by file name
Track file by date of send
Track file by date of receive
47 | 48 |
49 | 50 |
51 | 52 |
53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /build/web/branch/welcomeBranch.jsp: -------------------------------------------------------------------------------- 1 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 2 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Branch Welcome Page 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 32 | 33 |
34 |

Welcome User-  

35 | 36 |

Login from Branch-  

37 | 38 |

39 |
40 | <%-- for displaying notification --%> 41 | 42 | ${ sessionScope.notification } 43 | 44 |

45 | 46 |

47 | <%-- for success and error message --%> 48 | ${requestScope.message} 49 | ${requestScope.errorMessage} 50 |

51 |
52 | 53 |
54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /build/web/css/displaytag.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-size: 14px; 3 | font-family: Consolas, "Courier New", Times, serif; 4 | background-color: white; 5 | } 6 | 7 | table { 8 | border: 1px solid #666; 9 | width: 100%; 10 | margin: 20px 0 20px 0 !important; 11 | } 12 | 13 | th,td { 14 | padding: 2px 4px 2px 4px !important; 15 | text-align: center; 16 | vertical-align: top; 17 | } 18 | 19 | thead tr { 20 | background-color: #fc0; 21 | } 22 | 23 | th.sorted { 24 | background-color: orange; 25 | } 26 | 27 | th a,th a:visited { 28 | color: black; 29 | } 30 | 31 | th a:hover { 32 | text-decoration: underline; 33 | color: black; 34 | } 35 | 36 | th.sorted a,th.sortable a { 37 | background-position: right; 38 | display: block; 39 | width: 100%; 40 | } 41 | 42 | tr.odd { 43 | background-color: #fff 44 | } 45 | 46 | tr.tableRowEven,tr.even { 47 | background-color: #fea 48 | } 49 | 50 | div.exportlinks { 51 | background-color: #eee; 52 | border: 1px dotted #999; 53 | padding: 2px 4px 2px 4px; 54 | margin: 2px 0 10px 0; 55 | width: 79%; 56 | } 57 | 58 | span.export { 59 | padding: 0 4px 1px 20px; 60 | display: inline; 61 | display: inline-block; 62 | cursor: pointer; 63 | } 64 | 65 | span.excel { 66 | background-image: url(../img/ico_file_excel.png); 67 | } 68 | 69 | span.csv { 70 | background-image: url(../img/ico_file_csv.png); 71 | } 72 | 73 | span.xml { 74 | background-image: url(../img/ico_file_xml.png); 75 | } 76 | 77 | span.pdf { 78 | background-image: url(../img/ico_file_pdf.png); 79 | } 80 | 81 | span.rtf { 82 | background-image: url(../img/ico_file_rtf.png); 83 | } 84 | 85 | span.pagebanner { 86 | background-color: #eee; 87 | border: 1px dotted #999; 88 | padding: 2px 4px 2px 4px; 89 | width: 79%; 90 | margin-top: 10px; 91 | display: block; 92 | border-bottom: none; 93 | } 94 | 95 | span.pagelinks { 96 | background-color: #eee; 97 | border: 1px dotted #999; 98 | padding: 2px 4px 2px 4px; 99 | width: 79%; 100 | display: block; 101 | border-top: none; 102 | margin-bottom: -5px; 103 | } 104 | 105 | tr:hover { 106 | background: #eeeeff 107 | } 108 | 109 | caption { 110 | padding-bottom: 7px; 111 | font-size: 16px; 112 | font-weight: bold; 113 | text-align: center; 114 | } 115 | 116 | img { 117 | border: none; 118 | } 119 | 120 | span { 121 | background-repeat: no-repeat; 122 | } 123 | 124 | a:link {text-decoration:none;} 125 | a:visited {text-decoration:none;} 126 | a:hover {text-decoration:underline;} 127 | a:active {text-decoration:underline;} 128 | -------------------------------------------------------------------------------- /build/web/css/print.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-size: 14px; 3 | font-family: Georgia, "Times New Roman", Times, serif; 4 | background-color: white; 5 | } 6 | 7 | #nav, .pagebanner, .pagelinks, .exportlinks{ 8 | display: none; 9 | } 10 | 11 | 12 | #printData { 13 | width: 100%; 14 | margin: 0; 15 | float: none; 16 | } 17 | 18 | table, th, td { 19 | border: 1px solid #cccccc; 20 | border-collapse: collapse; 21 | padding: 3px; 22 | text-align: center; 23 | } 24 | 25 | table { 26 | width: 100%; 27 | } 28 | 29 | th { 30 | border-bottom: 2px solid black; 31 | } 32 | 33 | caption { 34 | padding-bottom: 7px; 35 | font-size: 17px; 36 | font-weight: bold; 37 | text-align: center; 38 | } 39 | 40 | /* for printers */ 41 | @media print 42 | { 43 | #noPrint { 44 | display: none; 45 | } 46 | 47 | } -------------------------------------------------------------------------------- /build/web/formNotice.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |

4 | N.B. : A form field with '*' is mandatary. It needs to filled up before submitting the form. 5 |

6 |
-------------------------------------------------------------------------------- /build/web/header.html: -------------------------------------------------------------------------------- 1 |
2 | file_tracking_system 3 |

4 | FILE TRACKING SYSTEM 5 |

6 |
7 | 8 | -------------------------------------------------------------------------------- /build/web/img/find.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/img/find.png -------------------------------------------------------------------------------- /build/web/img/fts.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/img/fts.jpeg -------------------------------------------------------------------------------- /build/web/img/help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/img/help.png -------------------------------------------------------------------------------- /build/web/img/ico_file_csv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/img/ico_file_csv.png -------------------------------------------------------------------------------- /build/web/img/ico_file_excel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/img/ico_file_excel.png -------------------------------------------------------------------------------- /build/web/img/ico_file_pdf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/img/ico_file_pdf.png -------------------------------------------------------------------------------- /build/web/img/ico_file_rtf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/img/ico_file_rtf.png -------------------------------------------------------------------------------- /build/web/img/ico_file_xml.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/img/ico_file_xml.png -------------------------------------------------------------------------------- /build/web/img/keys.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/img/keys.png -------------------------------------------------------------------------------- /build/web/img/lock_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/build/web/img/lock_open.png -------------------------------------------------------------------------------- /build/web/index.jsp: -------------------------------------------------------------------------------- 1 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 2 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 3 | 4 | <%--- Don't create session for this page, let the session to create after successful login ---%> 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | File Tracking System 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 |
26 | 27 |
${ requestScope.errorMessage}
28 | 29 |
30 |
31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 55 | 56 |
Branch Login Panel
Username:   
  
Password:   
  
51 | 52 |      53 | 54 |
57 | 58 |
59 |
60 | 61 |
62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /build/web/js/adminAjax.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function () { 2 | 3 | // fire an AJAX request for autocomplete file names 4 | $('#name').autocomplete({ 5 | autoFocus: true, 6 | source: function (request, response) { 7 | $.ajax({ 8 | url: '/FTS/admin/pages/nameSuggesstion.do', 9 | data: {term: request.term}, 10 | dataType: 'json', 11 | cache: false, 12 | success: function (data) { 13 | response(data); 14 | }, 15 | error: function (jqXHR, textStatus, errorThrown) { 16 | alert("Error in the Database connection!"); 17 | } 18 | 19 | }); 20 | } 21 | }); 22 | }); 23 | -------------------------------------------------------------------------------- /build/web/js/branchAjax.js: -------------------------------------------------------------------------------- 1 | // fire an AJAX request for autocomplete file names 2 | var ajaxCall = function () { 3 | 4 | $('#name').autocomplete({ 5 | autoFocus: true, 6 | source: function (request, response) { 7 | $.ajax({ 8 | url: '/FTS/branch/nameSuggestion.do', 9 | data: {term: request.term}, 10 | dataType: 'json', 11 | cache: false, 12 | success: function (data) { 13 | response(data); 14 | }, 15 | error: function (jqXHR, textStatus, errorThrown) { 16 | alert("Error in the Database connection!"); 17 | } 18 | 19 | }); 20 | } 21 | }); 22 | }; 23 | 24 | // call this function when the DOM is ready 25 | $(document).ready(ajaxCall); 26 | 27 | 28 | -------------------------------------------------------------------------------- /dist/FTS.war: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/dist/FTS.war -------------------------------------------------------------------------------- /nbproject/ant-deploy.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /nbproject/genfiles.properties: -------------------------------------------------------------------------------- 1 | build.xml.data.CRC32=8fdf960b 2 | build.xml.script.CRC32=d899ffd8 3 | build.xml.stylesheet.CRC32=651128d4@1.68.1.1 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 | nbproject/build-impl.xml.data.CRC32=8fdf960b 7 | nbproject/build-impl.xml.script.CRC32=df280004 8 | nbproject/build-impl.xml.stylesheet.CRC32=99ea4b56@1.68.1.1 9 | -------------------------------------------------------------------------------- /nbproject/private/private.properties: -------------------------------------------------------------------------------- 1 | deploy.ant.properties.file=/home/zyandeep/.netbeans/8.0.2/tomcat70.properties 2 | j2ee.server.home=/home/zyandeep/Tomcat 3 | j2ee.server.instance=tomcat70:home=/home/zyandeep/Tomcat/ 4 | javac.debug=true 5 | javadoc.preview=true 6 | selected.browser=default 7 | user.properties.file=/home/zyandeep/.netbeans/8.0.2/build.properties 8 | -------------------------------------------------------------------------------- /nbproject/private/private.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /snapshots/pic1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/snapshots/pic1.jpg -------------------------------------------------------------------------------- /snapshots/pic2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/snapshots/pic2.jpg -------------------------------------------------------------------------------- /snapshots/pic3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/snapshots/pic3.jpg -------------------------------------------------------------------------------- /snapshots/pic4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/snapshots/pic4.jpg -------------------------------------------------------------------------------- /src/conf/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | 3 | -------------------------------------------------------------------------------- /src/java/bca/fts/controller/AdminAutocomplete.java: -------------------------------------------------------------------------------- 1 | // this servlet is responsible for handling AJAX request and send back filenames as response 2 | package bca.fts.controller; 3 | 4 | import bca.fts.dao.FileDao; 5 | import com.google.gson.Gson; 6 | import java.io.*; 7 | import java.util.ArrayList; 8 | import javax.servlet.ServletException; 9 | import javax.servlet.http.*; 10 | 11 | public class AdminAutocomplete extends HttpServlet { 12 | 13 | @Override 14 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 15 | throws ServletException, IOException { 16 | 17 | doPost(request, response); 18 | } 19 | 20 | @Override 21 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 22 | throws ServletException, IOException { 23 | 24 | String keyword = request.getParameter("term"); 25 | 26 | // check for null values, illigal access 27 | if (keyword == null) { 28 | request.getRequestDispatcher("welcomeAdmin.jsp").forward(request, response); 29 | } else { 30 | ArrayList fileNames = null; 31 | 32 | if (keyword.equals("%") || keyword.equals("_")) { 33 | 34 | // just return null 35 | String searchList = new Gson().toJson(fileNames); 36 | 37 | response.setContentType("application/json"); 38 | 39 | PrintWriter out = response.getWriter(); 40 | out.write(searchList); 41 | } else { 42 | // get the filenames from DAO 43 | fileNames = FileDao.autocompleteFileName(keyword); 44 | 45 | // database related error so don't send json data and let the browser to show the alert box 46 | if (fileNames == null) { 47 | return; 48 | } 49 | 50 | // convert the String array to JSON format 51 | String searchList = new Gson().toJson(fileNames); 52 | 53 | response.setContentType("application/json"); 54 | 55 | PrintWriter out = response.getWriter(); 56 | out.write(searchList); 57 | } 58 | } 59 | 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /src/java/bca/fts/controller/AdminCloseFiles.java: -------------------------------------------------------------------------------- 1 | // this servlet is responsible for loading all closed files 2 | package bca.fts.controller; 3 | 4 | import java.io.*; 5 | import javax.servlet.*; 6 | import javax.servlet.http.*; 7 | import java.util.ArrayList; 8 | import org.apache.log4j.*; 9 | 10 | import bca.fts.model.*; 11 | import bca.fts.dao.*; 12 | import java.util.Collections; 13 | import java.util.Comparator; 14 | 15 | public class AdminCloseFiles extends HttpServlet { 16 | 17 | // the logger object 18 | private static final Logger logger = Logger.getLogger(AdminCloseFiles.class); 19 | 20 | @Override 21 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 22 | throws ServletException, IOException { 23 | 24 | doPost(request, response); 25 | } 26 | 27 | @Override 28 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 29 | throws ServletException, IOException { 30 | 31 | HttpSession session = request.getSession(false); 32 | AdminBean bean = (AdminBean) session.getAttribute("admin"); 33 | String user = bean.getUserName(); 34 | 35 | logger.info(user + " viewed the closed file report"); 36 | 37 | ArrayList files = AdminReportsDao.giveClosedFiles(); 38 | 39 | if (files == null) { 40 | 41 | request.setAttribute("errorMessage", "Error has occured in the database operation!"); 42 | request.getRequestDispatcher("reportsAdmin.jsp").forward(request, response); 43 | } else if (files.isEmpty()) { 44 | 45 | request.setAttribute("errorMessage", "No file found"); 46 | request.getRequestDispatcher("reportsAdmin.jsp").forward(request, response); 47 | } else { 48 | 49 | // sort the list first in Ascending order based on the date of date-of-send; 50 | Collections.sort(files, new Comparator() { 51 | 52 | @Override 53 | public int compare(ClosedFileBean o1, ClosedFileBean o2) { 54 | return o1.getDate().compareTo(o2.getDate()); 55 | } 56 | }); 57 | 58 | // sort the list first in Ascending order; 59 | Collections.reverse(files); 60 | 61 | session.setAttribute("closeFiles", files); 62 | request.getRequestDispatcher("closedFiles.jsp").forward(request, response); 63 | } 64 | 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /src/java/bca/fts/controller/AdminPendingFiles.java: -------------------------------------------------------------------------------- 1 | // this servlet is responsible for loading all pending files 2 | package bca.fts.controller; 3 | 4 | import java.io.*; 5 | import javax.servlet.*; 6 | import javax.servlet.http.*; 7 | import java.util.*; 8 | import org.apache.log4j.*; 9 | 10 | import bca.fts.model.*; 11 | import bca.fts.dao.*; 12 | 13 | public class AdminPendingFiles extends HttpServlet { 14 | 15 | // the logger object 16 | private static final Logger logger = Logger.getLogger(AdminPendingFiles.class); 17 | 18 | @Override 19 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 20 | throws ServletException, IOException { 21 | 22 | doPost(request, response); 23 | } 24 | 25 | @Override 26 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 27 | throws ServletException, IOException { 28 | 29 | HttpSession session = request.getSession(false); 30 | AdminBean bean = (AdminBean) session.getAttribute("admin"); 31 | String user = bean.getUserName(); 32 | 33 | logger.info(user + " viewed the pending file report"); 34 | 35 | ArrayList files = AdminReportsDao.givePendingFiles(); 36 | 37 | if (files == null) { 38 | 39 | request.setAttribute("errorMessage", "Error has occured in the database operation!"); 40 | request.getRequestDispatcher("reportsAdmin.jsp").forward(request, response); 41 | } else if (files.isEmpty()) { 42 | 43 | request.setAttribute("errorMessage", "No file found"); 44 | request.getRequestDispatcher("reportsAdmin.jsp").forward(request, response); 45 | } else { 46 | 47 | // sort the list first in Ascending order based on the date of date-of-send; 48 | Collections.sort(files, new Comparator() { 49 | 50 | @Override 51 | public int compare(FileBean o1, FileBean o2) { 52 | return o1.getDate().compareTo(o2.getDate()); 53 | } 54 | }); 55 | 56 | // sort the list first in Ascending order; 57 | Collections.reverse(files); 58 | 59 | session.setAttribute("pendingFiles", files); 60 | request.getRequestDispatcher("pendingFiles.jsp").forward(request, response); 61 | } 62 | 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /src/java/bca/fts/controller/AdminProcessFiles.java: -------------------------------------------------------------------------------- 1 | // this servlet is responsible for loading all processing files 2 | package bca.fts.controller; 3 | 4 | import java.io.*; 5 | import javax.servlet.*; 6 | import javax.servlet.http.*; 7 | import java.util.ArrayList; 8 | import org.apache.log4j.*; 9 | 10 | import bca.fts.model.*; 11 | import bca.fts.dao.*; 12 | import java.util.Collections; 13 | import java.util.Comparator; 14 | 15 | public class AdminProcessFiles extends HttpServlet { 16 | 17 | // the logger object 18 | private static final Logger logger = Logger.getLogger(AdminProcessFiles.class); 19 | 20 | @Override 21 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 22 | throws ServletException, IOException { 23 | 24 | doPost(request, response); 25 | } 26 | 27 | @Override 28 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 29 | throws ServletException, IOException { 30 | 31 | HttpSession session = request.getSession(false); 32 | AdminBean bean = (AdminBean) session.getAttribute("admin"); 33 | String user = bean.getUserName(); 34 | 35 | logger.info(user + " viewed the processing file report"); 36 | 37 | ArrayList files = AdminReportsDao.giveProcessingFiles(); 38 | 39 | if (files == null) { 40 | 41 | request.setAttribute("errorMessage", "Error has occured in the database operation!"); 42 | request.getRequestDispatcher("reportsAdmin.jsp").forward(request, response); 43 | } else if (files.isEmpty()) { 44 | 45 | request.setAttribute("errorMessage", "No file found"); 46 | request.getRequestDispatcher("reportsAdmin.jsp").forward(request, response); 47 | } else { 48 | 49 | // sort the list first in Ascending order based on the date of date-of-send; 50 | Collections.sort(files, new Comparator() { 51 | 52 | @Override 53 | public int compare(ProcessingFileBean o1, ProcessingFileBean o2) { 54 | return o1.getDate().compareTo(o2.getDate()); 55 | } 56 | }); 57 | 58 | // the sort the list in decending order; 59 | Collections.reverse(files); 60 | 61 | session.setAttribute("processingFiles", files); 62 | request.getRequestDispatcher("processingFiles.jsp").forward(request, response); 63 | } 64 | 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /src/java/bca/fts/controller/AdminRegisFiles.java: -------------------------------------------------------------------------------- 1 | // this servlet is responsible for loading all registered files 2 | package bca.fts.controller; 3 | 4 | import java.io.*; 5 | import javax.servlet.*; 6 | import javax.servlet.http.*; 7 | import java.util.ArrayList; 8 | import org.apache.log4j.*; 9 | 10 | import bca.fts.model.*; 11 | import bca.fts.dao.*; 12 | 13 | public class AdminRegisFiles extends HttpServlet { 14 | 15 | // the logger object 16 | private static final Logger logger = Logger.getLogger(AdminRegisFiles.class); 17 | 18 | @Override 19 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 20 | throws ServletException, IOException { 21 | 22 | doPost(request, response); 23 | } 24 | 25 | @Override 26 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 27 | throws ServletException, IOException { 28 | 29 | HttpSession session = request.getSession(false); 30 | AdminBean bean = (AdminBean) session.getAttribute("admin"); 31 | String user = bean.getUserName(); 32 | 33 | logger.info(user + " viewed the registered file report"); 34 | 35 | ArrayList files = AdminReportsDao.giveRegisteredFiles(); 36 | 37 | if (files == null) { 38 | 39 | request.setAttribute("errorMessage", "Error has occured in the database operation!"); 40 | request.getRequestDispatcher("reportsAdmin.jsp").forward(request, response); 41 | } else if (files.isEmpty()) { 42 | 43 | request.setAttribute("errorMessage", "No file found"); 44 | request.getRequestDispatcher("reportsAdmin.jsp").forward(request, response); 45 | } else { 46 | 47 | session.setAttribute("registeredFiles", files); 48 | request.getRequestDispatcher("registeredFiles.jsp").forward(request, response); 49 | } 50 | 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/java/bca/fts/controller/AdminRejectFiles.java: -------------------------------------------------------------------------------- 1 | // this servlet is responsible for loading all rejected files 2 | package bca.fts.controller; 3 | 4 | import java.io.*; 5 | import javax.servlet.*; 6 | import javax.servlet.http.*; 7 | import java.util.ArrayList; 8 | import org.apache.log4j.*; 9 | 10 | import bca.fts.model.*; 11 | import bca.fts.dao.*; 12 | import java.util.Collections; 13 | import java.util.Comparator; 14 | 15 | public class AdminRejectFiles extends HttpServlet { 16 | 17 | // the logger object 18 | private static final Logger logger = Logger.getLogger(AdminRejectFiles.class); 19 | 20 | @Override 21 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 22 | throws ServletException, IOException { 23 | 24 | doPost(request, response); 25 | } 26 | 27 | @Override 28 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 29 | throws ServletException, IOException { 30 | 31 | HttpSession session = request.getSession(false); 32 | AdminBean bean = (AdminBean) session.getAttribute("admin"); 33 | String user = bean.getUserName(); 34 | 35 | logger.info(user + " viewed the rejected file report"); 36 | 37 | ArrayList files = AdminReportsDao.giveRejectedFiles(); 38 | 39 | if (files == null) { 40 | 41 | request.setAttribute("errorMessage", "Error has occured in the database operation!"); 42 | request.getRequestDispatcher("reportsAdmin.jsp").forward(request, response); 43 | } else if (files.isEmpty()) { 44 | 45 | request.setAttribute("errorMessage", "No file found"); 46 | request.getRequestDispatcher("reportsAdmin.jsp").forward(request, response); 47 | } else { 48 | 49 | // sort the list first in Ascending order based on the date of date-of-send; 50 | Collections.sort(files, new Comparator() { 51 | 52 | @Override 53 | public int compare(FileBean o1, FileBean o2) { 54 | return o1.getDate().compareTo(o2.getDate()); 55 | } 56 | }); 57 | 58 | // sort the list first in Ascending order; 59 | Collections.reverse(files); 60 | 61 | session.setAttribute("rejectedFiles", files); 62 | request.getRequestDispatcher("rejectedFiles.jsp").forward(request, response); 63 | } 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /src/java/bca/fts/controller/BranchAutocomplete.java: -------------------------------------------------------------------------------- 1 | // this servlet is responsible for handling AJAX request and send back filenames as response 2 | package bca.fts.controller; 3 | 4 | import java.io.*; 5 | import javax.servlet.ServletException; 6 | import javax.servlet.http.*; 7 | import java.util.ArrayList; 8 | 9 | import com.google.gson.*; 10 | import bca.fts.dao.FileDao; 11 | 12 | public class BranchAutocomplete extends HttpServlet { 13 | 14 | @Override 15 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 16 | throws ServletException, IOException { 17 | 18 | doPost(request, response); 19 | } 20 | 21 | @Override 22 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 23 | throws ServletException, IOException { 24 | 25 | String keyword = request.getParameter("term"); 26 | ArrayList fileNames = null; 27 | 28 | // check for null values, illigal access 29 | if (keyword == null) { 30 | request.getRequestDispatcher("welcomeBranch.jsp").forward(request, response); 31 | } else { 32 | if (keyword.equals("%") || keyword.equals("_")) { 33 | 34 | // just return null 35 | String searchList = new Gson().toJson(fileNames); 36 | 37 | response.setContentType("application/json"); 38 | 39 | PrintWriter out = response.getWriter(); 40 | out.write(searchList); 41 | } else { 42 | // get the filenames from DAO 43 | fileNames = FileDao.autocompleteFileName(keyword); 44 | 45 | // database related error so don't send json data and let the browser to show the alert box 46 | if (fileNames == null) { 47 | return; 48 | } 49 | 50 | // convert the String array to JSON format 51 | String searchList = new Gson().toJson(fileNames); 52 | 53 | response.setContentType("application/json"); 54 | 55 | PrintWriter out = response.getWriter(); 56 | out.write(searchList); 57 | } 58 | } 59 | 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/java/bca/fts/controller/BranchRecordsAdmin.java: -------------------------------------------------------------------------------- 1 | // this servlet loads a list of registered branch records and sends it to the appropiate VIEW 2 | package bca.fts.controller; 3 | 4 | import java.io.*; 5 | import javax.servlet.*; 6 | import javax.servlet.http.*; 7 | import java.util.ArrayList; 8 | import org.apache.log4j.*; 9 | 10 | import bca.fts.dao.*; 11 | import bca.fts.model.*; 12 | 13 | public class BranchRecordsAdmin extends HttpServlet { 14 | 15 | // the logger object 16 | private static final Logger logger = Logger.getLogger(BranchRecordsAdmin.class); 17 | 18 | @Override 19 | public void doGet(HttpServletRequest request, HttpServletResponse response) 20 | throws ServletException, IOException { 21 | 22 | doPost(request, response); 23 | } 24 | 25 | @Override 26 | public void doPost(HttpServletRequest request, HttpServletResponse response) 27 | throws ServletException, IOException { 28 | 29 | HttpSession session = request.getSession(false); 30 | AdminBean bean = (AdminBean) session.getAttribute("admin"); 31 | String user = bean.getUserName(); 32 | 33 | String bName = request.getParameter("bName"); 34 | 35 | logger.info(user + " viewed registered branch records"); 36 | 37 | // get the branch records and set it to the session 38 | ArrayList branchRecords = AdminReportsDao.giveBranches(); 39 | 40 | if (branchRecords == null) { 41 | 42 | request.setAttribute("errorMessage", "Error has occured in the database operation!"); 43 | request.getRequestDispatcher("welcomeAdmin.jsp").forward(request, response); 44 | } 45 | if (branchRecords.isEmpty()) { 46 | 47 | request.setAttribute("errorMessage", "No branch has been registered yet"); 48 | request.getRequestDispatcher("welcomeAdmin.jsp").forward(request, response); 49 | } else { 50 | session.setAttribute("branchRecords", branchRecords); 51 | 52 | // verify if "branchNames" need to be update 53 | if (bName != null) { 54 | 55 | ArrayList branchNames = new ArrayList(); 56 | 57 | // iterate over the branch-records to collect the branch names 58 | for (BranchBean b : branchRecords) { 59 | branchNames.add(b.getOfficeName()); 60 | } 61 | 62 | session.setAttribute("branchNames", branchNames); 63 | } 64 | 65 | request.getRequestDispatcher("branchList.jsp").forward(request, response); 66 | } 67 | 68 | } 69 | 70 | } 71 | -------------------------------------------------------------------------------- /src/java/bca/fts/controller/DeleteFileType.java: -------------------------------------------------------------------------------- 1 | //this servlet delete a file-type to the database 2 | package bca.fts.controller; 3 | 4 | import java.io.*; 5 | import javax.servlet.*; 6 | import javax.servlet.http.*; 7 | import org.apache.log4j.*; 8 | 9 | import bca.fts.dao.*; 10 | import bca.fts.model.AdminBean; 11 | 12 | public class DeleteFileType extends HttpServlet { 13 | 14 | private static final Logger logger = Logger.getLogger(DeleteFileType.class); 15 | 16 | @Override 17 | protected void doGet(HttpServletRequest req, HttpServletResponse resp) 18 | throws ServletException, IOException { 19 | doPost(req, resp); 20 | } 21 | 22 | @Override 23 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 24 | throws ServletException, IOException { 25 | 26 | HttpSession session = request.getSession(false); 27 | AdminBean bean = (AdminBean) session.getAttribute("admin"); 28 | String user = bean.getUserName(); 29 | 30 | String fileType = request.getParameter("fileType"); 31 | int row = 0; 32 | 33 | // illigal access 34 | if (fileType == null) { 35 | request.getRequestDispatcher("welcomeAdmin.jsp").forward(request, response); 36 | } else { 37 | 38 | row = FileDao.deleteFileType(fileType.trim()); 39 | 40 | // redirect the requset to the appropiate page 41 | if (row == 1) { 42 | logger.info(user + " deleted file type " + fileType); 43 | 44 | request.setAttribute("message", "File-type " + fileType + " has been successfully deleted"); 45 | request.getRequestDispatcher("loadFileTypes.do").forward(request, response); 46 | } else if (row == 0) { 47 | 48 | request.setAttribute("errorMessage", "File type " + fileType + " couldn't be deleted"); 49 | request.getRequestDispatcher("addFileType.jsp").forward(request, response); 50 | } else { 51 | request.setAttribute("errorMessage", "Error has occured in the databse operation!"); 52 | request.getRequestDispatcher("addFileType.jsp").forward(request, response); 53 | } 54 | 55 | } 56 | 57 | } 58 | 59 | } 60 | -------------------------------------------------------------------------------- /src/java/bca/fts/controller/GetFileRecord.java: -------------------------------------------------------------------------------- 1 | // this servlet fetch the data of the file to be updated and display it via view-fileEdit.jsp 2 | package bca.fts.controller; 3 | 4 | import java.io.*; 5 | import javax.servlet.*; 6 | import javax.servlet.http.*; 7 | 8 | import bca.fts.model.*; 9 | import bca.fts.dao.*; 10 | 11 | public class GetFileRecord extends HttpServlet { 12 | 13 | @Override 14 | protected void doGet(HttpServletRequest req, HttpServletResponse resp) 15 | throws ServletException, IOException { 16 | doPost(req, resp); 17 | } 18 | 19 | @Override 20 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 21 | throws ServletException, IOException { 22 | 23 | String id = request.getParameter("id"); 24 | FileBean file = null; 25 | String errMessage = ""; 26 | int fileID = 0; 27 | 28 | if (id == null || id.isEmpty()) { 29 | file = null; 30 | } else { 31 | 32 | fileID = Integer.valueOf(id.trim()); 33 | 34 | file = FileDao.giveFileRecord(fileID); 35 | } 36 | 37 | //check if file record is found or not 38 | if (file != null) { 39 | 40 | // set the fileBean in session, instead of request scope, so that if user submits wrong data, data can still 41 | // be retrieved form the session 42 | HttpSession session = request.getSession(false); 43 | session.setAttribute("fileBean", file); 44 | 45 | request.getRequestDispatcher("loadFileType.do?page=fileEdit.jsp").forward(request, response); 46 | 47 | } else { 48 | 49 | request.setAttribute("errorMessage", "Record couldn't be retrieved"); 50 | request.getRequestDispatcher("listRegFiles.do").forward(request, response); 51 | } 52 | 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /src/java/bca/fts/controller/IDServlet.java: -------------------------------------------------------------------------------- 1 | // this servlet is responsible for retriving the auto-increment ID for a new branch 2 | package bca.fts.controller; 3 | 4 | import java.io.*; 5 | import javax.servlet.*; 6 | import javax.servlet.http.*; 7 | 8 | import bca.fts.dao.IDDao; 9 | 10 | public class IDServlet extends HttpServlet { 11 | 12 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 13 | throws ServletException, IOException { 14 | 15 | int id = IDDao.getLastID(); 16 | 17 | // check the database-related error 18 | if (id == -1) { 19 | request.setAttribute("errorMessage", "Error has occured in the database operation!"); 20 | request.getRequestDispatcher("welcomeAdmin.jsp").forward(request, response); 21 | } else { 22 | request.setAttribute("branchID", ++id); 23 | request.getRequestDispatcher("branchRegister.jsp").forward(request, response); 24 | } 25 | 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /src/java/bca/fts/controller/ListRegFilesBranch.java: -------------------------------------------------------------------------------- 1 | // this servlet giver the list of registered files of a particular branch 2 | package bca.fts.controller; 3 | 4 | import java.util.ArrayList; 5 | import java.io.*; 6 | import javax.servlet.*; 7 | import javax.servlet.http.*; 8 | import org.apache.log4j.*; 9 | 10 | import bca.fts.dao.*; 11 | import bca.fts.model.*; 12 | 13 | public class ListRegFilesBranch extends HttpServlet { 14 | 15 | // the logger object 16 | private static final Logger logger = Logger.getLogger(ListRegFilesBranch.class); 17 | 18 | @Override 19 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 20 | throws ServletException, IOException { 21 | 22 | doPost(request, response); 23 | } 24 | 25 | @Override 26 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 27 | throws ServletException, IOException { 28 | 29 | HttpSession session = request.getSession(false); 30 | BranchBean branch = (BranchBean) session.getAttribute("branch"); 31 | String user = branch.getUsername(); 32 | 33 | ArrayList files = null; 34 | 35 | logger.info(user + " viewed the registered file list"); 36 | 37 | // call "dao" to give the list of files and branches where files can be dispatched 38 | files = BranchReportDao.giveFiles(branch.getOfficeName()); 39 | 40 | if (files != null) { 41 | 42 | session.setAttribute("registeredFiles", files); 43 | request.getRequestDispatcher("regFileList.jsp").forward(request, response); 44 | 45 | } else { 46 | request.setAttribute("errorMessage", "No file found"); 47 | request.getRequestDispatcher("welcomeBranch.jsp").forward(request, response); 48 | } 49 | 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/java/bca/fts/controller/LoadFileType.java: -------------------------------------------------------------------------------- 1 | // this servlet is responsible for displaying all the registered file-types 2 | package bca.fts.controller; 3 | 4 | import java.io.*; 5 | import javax.servlet.*; 6 | import javax.servlet.http.*; 7 | import java.util.ArrayList; 8 | 9 | import bca.fts.dao.*; 10 | import bca.fts.model.*; 11 | 12 | public class LoadFileType extends HttpServlet { 13 | 14 | @Override 15 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 16 | throws ServletException, IOException { 17 | 18 | doPost(request, response); 19 | } 20 | 21 | @Override 22 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 23 | throws ServletException, IOException { 24 | 25 | ArrayList fileTypes = null; 26 | 27 | fileTypes = AdminReportsDao.giveFileTypes(); 28 | 29 | if (fileTypes == null) { 30 | 31 | // database-error occured 32 | request.setAttribute("errorMessage", "Error has occured in the database operation!"); 33 | request.getRequestDispatcher("welcomeAdmin.jsp").forward(request, response); 34 | } else if (fileTypes.isEmpty()) { 35 | 36 | request.setAttribute("message", "You've not registered any file type yet"); 37 | request.getRequestDispatcher("addFileType.jsp").forward(request, response); 38 | 39 | } else { 40 | 41 | // set the file-type in the session 42 | HttpSession session = request.getSession(false); 43 | session.setAttribute("fileType", fileTypes); 44 | 45 | request.getRequestDispatcher("addFileType.jsp").forward(request, response); 46 | } 47 | 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/java/bca/fts/controller/LoadFileTypeBranch.java: -------------------------------------------------------------------------------- 1 | // this servlet is responsible for displaying all the registered file-types 2 | package bca.fts.controller; 3 | 4 | import java.io.*; 5 | import javax.servlet.*; 6 | import javax.servlet.http.*; 7 | import java.util.ArrayList; 8 | 9 | import bca.fts.dao.*; 10 | 11 | public class LoadFileTypeBranch extends HttpServlet { 12 | 13 | @Override 14 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 15 | throws ServletException, IOException { 16 | 17 | doPost(request, response); 18 | } 19 | 20 | @Override 21 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 22 | throws ServletException, IOException { 23 | 24 | String page = request.getParameter("page"); 25 | 26 | ArrayList fileTypes = null; 27 | 28 | fileTypes = AdminReportsDao.giveFileTypes(); 29 | 30 | if (fileTypes == null) { 31 | 32 | // database-error occured 33 | request.setAttribute("errorMessage", "Error has occured in the database operation!"); 34 | 35 | if (page == null) { 36 | request.getRequestDispatcher("welcomeBranch.jsp").forward(request, response); 37 | } else { 38 | request.getRequestDispatcher("regFileList.jsp").forward(request, response); 39 | } 40 | } else if (fileTypes.isEmpty()) { 41 | 42 | request.setAttribute("message", "No file type has been registered yet. Contact the Admin"); 43 | request.getRequestDispatcher("welcomeBranch.jsp").forward(request, response); 44 | 45 | } else { 46 | 47 | // give the existing session, don't create one 48 | HttpSession session = request.getSession(false); 49 | session.setAttribute("fileType", fileTypes); 50 | 51 | if (page == null) { 52 | request.getRequestDispatcher("fileRegister.jsp").forward(request, response); 53 | } else { 54 | request.getRequestDispatcher(page).forward(request, response); 55 | } 56 | 57 | } 58 | 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /src/java/bca/fts/controller/LogoutServlet.java: -------------------------------------------------------------------------------- 1 | // this servlet logs a user out of his/her account 2 | package bca.fts.controller; 3 | 4 | import java.io.*; 5 | import javax.servlet.*; 6 | import javax.servlet.http.*; 7 | import org.apache.log4j.*; 8 | 9 | import bca.fts.model.*; 10 | 11 | public class LogoutServlet extends HttpServlet { 12 | 13 | // the logger object 14 | private static final Logger logger = Logger.getLogger(LogoutServlet.class); 15 | 16 | @Override 17 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 18 | throws ServletException, IOException { 19 | 20 | doPost(request, response); 21 | } 22 | 23 | @Override 24 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 25 | throws ServletException, IOException { 26 | 27 | HttpSession session = request.getSession(false); 28 | AdminBean admin = (AdminBean) session.getAttribute("admin"); 29 | BranchBean branch = (BranchBean) session.getAttribute("branch"); 30 | 31 | String user = null; 32 | 33 | if (admin == null) { 34 | 35 | // this session is for branch 36 | user = branch.getOfficeName(); 37 | } else { 38 | 39 | // this session is for admin 40 | user = admin.getUserName(); 41 | } 42 | 43 | // destroy it 44 | session.invalidate(); 45 | 46 | logger.info(user + " successfully logged out"); 47 | 48 | response.sendRedirect("/FTS/"); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /src/java/bca/fts/controller/NotificationServlet.java: -------------------------------------------------------------------------------- 1 | // this servlet keeps track whether the user respond to the notification or not 2 | package bca.fts.controller; 3 | 4 | import java.io.*; 5 | import javax.servlet.*; 6 | import javax.servlet.http.*; 7 | 8 | public class NotificationServlet extends HttpServlet { 9 | 10 | @Override 11 | public void doGet(HttpServletRequest request, HttpServletResponse response) 12 | throws ServletException, IOException { 13 | 14 | doPost(request, response); 15 | } 16 | 17 | @Override 18 | public void doPost(HttpServletRequest request, HttpServletResponse response) 19 | throws ServletException, IOException { 20 | 21 | request.getSession(false).setAttribute("inbox", true); 22 | 23 | request.getRequestDispatcher("loadIncomings.do").forward(request, response); 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /src/java/bca/fts/controller/RecieveFileServlet.java: -------------------------------------------------------------------------------- 1 | // this servlet is responsible for recieving a file and changing its status to "PROCESSING" 2 | package bca.fts.controller; 3 | 4 | import java.io.*; 5 | import javax.servlet.*; 6 | import javax.servlet.http.*; 7 | import java.util.ArrayList; 8 | import org.apache.log4j.*; 9 | 10 | import bca.fts.dao.*; 11 | import bca.fts.model.BranchBean; 12 | import bca.fts.model.IncomingFileBean; 13 | 14 | public class RecieveFileServlet extends HttpServlet { 15 | 16 | // the logger object 17 | private static final Logger logger = Logger.getLogger(RecieveFileServlet.class); 18 | 19 | @Override 20 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 21 | throws ServletException, IOException { 22 | 23 | doPost(request, response); 24 | } 25 | 26 | @Override 27 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 28 | throws ServletException, IOException { 29 | 30 | HttpSession session = request.getSession(false); 31 | BranchBean branch = (BranchBean) session.getAttribute("branch"); 32 | String user = branch.getUsername(); 33 | 34 | String id = request.getParameter("id"); 35 | 36 | // illigal access 37 | if (id == null) { 38 | request.getRequestDispatcher("welcomeBranch.jsp").forward(request, response); 39 | } else { 40 | int fileID = Integer.valueOf(id.trim()); 41 | 42 | int result = 0; 43 | 44 | // get the incoming files list from session and make that receive_file_status = true 45 | ArrayList files = (ArrayList) session.getAttribute("incomingFiles"); 46 | 47 | for (IncomingFileBean file : files) { 48 | 49 | if (file.getId() == fileID) { 50 | file.setFileRecieved(true); 51 | 52 | break; 53 | } 54 | 55 | } 56 | 57 | // change the file's status in Database 58 | result = FileDao.changeFileStatus(fileID, "PROCESSING"); 59 | 60 | // check whether the file is recieved successfully or not 61 | if (result == 1) { 62 | logger.info(user + " recieved file having ID " + id); 63 | 64 | request.getRequestDispatcher("branchInbox.jsp").forward(request, response); 65 | } else { 66 | 67 | request.setAttribute("errorMessage", "File couldn't be recieved successfully"); 68 | request.getRequestDispatcher("branchInbox.jsp").forward(request, response); 69 | } 70 | } 71 | 72 | } 73 | 74 | } 75 | -------------------------------------------------------------------------------- /src/java/bca/fts/controller/ViewSentFiles.java: -------------------------------------------------------------------------------- 1 | // this servlet gives the list of sent files of a branch with there current status 2 | package bca.fts.controller; 3 | 4 | import java.util.ArrayList; 5 | import java.io.*; 6 | import javax.servlet.*; 7 | import javax.servlet.http.*; 8 | import org.apache.log4j.*; 9 | 10 | import bca.fts.dao.*; 11 | import bca.fts.model.*; 12 | import java.util.Collections; 13 | import java.util.Comparator; 14 | 15 | public class ViewSentFiles extends HttpServlet { 16 | 17 | // the logger object 18 | private static final Logger logger = Logger.getLogger(ViewSentFiles.class); 19 | 20 | @Override 21 | protected void doGet(HttpServletRequest req, HttpServletResponse resp) 22 | throws ServletException, IOException { 23 | 24 | doPost(req, resp); 25 | } 26 | 27 | @Override 28 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 29 | throws ServletException, IOException { 30 | 31 | HttpSession session = request.getSession(false); 32 | BranchBean branch = (BranchBean) session.getAttribute("branch"); 33 | String user = branch.getUsername(); 34 | 35 | ArrayList files = null; 36 | 37 | logger.info(user + " viewed the sent file list"); 38 | 39 | // get the lits of sent files from "dao" 40 | files = BranchReportDao.giveSentFiles(branch.getOfficeName()); 41 | 42 | if (files != null) { 43 | 44 | // sort the list first in Ascending order based on the date of date-of-send; 45 | Collections.sort(files, new Comparator() { 46 | 47 | @Override 48 | public int compare(FileBean o1, FileBean o2) { 49 | return o1.getDate().compareTo(o2.getDate()); 50 | } 51 | }); 52 | 53 | // sort the list first in Ascending order; 54 | Collections.reverse(files); 55 | 56 | session.setAttribute("sentFiles", files); 57 | request.getRequestDispatcher("sentFiles.jsp").forward(request, response); 58 | 59 | } else { 60 | request.setAttribute("errorMessage", "No file found"); 61 | request.getRequestDispatcher("welcomeBranch.jsp").forward(request, response); 62 | } 63 | 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/java/bca/fts/dao/BranchLoginCheckDao.java: -------------------------------------------------------------------------------- 1 | package bca.fts.dao; 2 | 3 | import bca.fts.model.*; 4 | import bca.fts.util.*; 5 | import java.sql.*; 6 | import org.apache.log4j.*; 7 | 8 | public class BranchLoginCheckDao { 9 | 10 | // the logger object 11 | private static final Logger logger = Logger.getLogger(BranchLoginCheckDao.class); 12 | 13 | public static BranchBean authenticate(String username, String password) { 14 | 15 | Connection con = null; 16 | ResultSet res = null; 17 | PreparedStatement ps = null; 18 | 19 | String sql = "SELECT * FROM branchdetails WHERE username=? AND password=?"; 20 | BranchBean branch = null; 21 | 22 | try { 23 | con = DatabaseConnector.getConnection(); 24 | ps = con.prepareStatement(sql); 25 | 26 | ps.setString(1, username); 27 | ps.setString(2, password); 28 | 29 | res = ps.executeQuery(); 30 | 31 | // save the branch info in a bean, don't load the password 32 | if (res.next()) { 33 | branch = new BranchBean(); 34 | 35 | branch.setId(res.getInt(1)); 36 | branch.setOfficeName(res.getString(2)); 37 | branch.setHeadName(res.getString(3)); 38 | branch.setUsername(res.getString(4)); 39 | } else { 40 | 41 | // no registered branch; empty branch bean 42 | branch = new BranchBean(); 43 | } 44 | 45 | } catch (Exception e) { 46 | logger.error(e); 47 | 48 | // error occured 49 | branch = null; 50 | } finally { 51 | 52 | // clean up database resources 53 | DatabaseConnector.closeResultSet(res); 54 | DatabaseConnector.closePreStatement(ps); 55 | DatabaseConnector.freeConncetion(con); 56 | } 57 | 58 | return branch; 59 | } 60 | 61 | // change branch account password 62 | public static int changePassword(String username, String newPass) { 63 | 64 | Connection con = null; 65 | PreparedStatement ps = null; 66 | 67 | String sql = "UPDATE branchdetails SET password = ? WHERE username = ?"; 68 | int row = 0; 69 | 70 | try { 71 | con = DatabaseConnector.getConnection(); 72 | ps = con.prepareStatement(sql); 73 | 74 | ps.setString(1, newPass); 75 | ps.setString(2, username); 76 | 77 | row = ps.executeUpdate(); 78 | } catch (Exception e) { 79 | logger.error(e); 80 | 81 | row = -1; // error while updating 82 | } finally { 83 | 84 | DatabaseConnector.closePreStatement(ps); 85 | DatabaseConnector.freeConncetion(con); 86 | } 87 | 88 | return row; 89 | } 90 | 91 | } 92 | -------------------------------------------------------------------------------- /src/java/bca/fts/dao/IDDao.java: -------------------------------------------------------------------------------- 1 | // this class gives the last ID of the table 'branchdetails' 2 | package bca.fts.dao; 3 | 4 | import java.sql.*; 5 | import org.apache.log4j.*; 6 | 7 | import bca.fts.util.*; 8 | 9 | public class IDDao { 10 | 11 | // the logger object 12 | private static final Logger logger = Logger.getLogger(IDDao.class); 13 | 14 | public static int getLastID() { 15 | 16 | Connection con = null; 17 | Statement st = null; 18 | ResultSet rs = null; 19 | 20 | int lastID = 0; 21 | 22 | String sql = "SELECT MAX(id) FROM branchdetails"; 23 | 24 | try { 25 | con = DatabaseConnector.getConnection(); 26 | st = con.createStatement(); 27 | rs = st.executeQuery(sql); 28 | 29 | if (rs.next()) { 30 | lastID = rs.getInt(1); 31 | } 32 | 33 | } catch (Exception e) { 34 | logger.error(e); 35 | 36 | lastID = -1; // database error 37 | } finally { 38 | 39 | // cleane up database resources 40 | DatabaseConnector.closeResultSet(rs); 41 | DatabaseConnector.closeStatement(st); 42 | DatabaseConnector.freeConncetion(con); 43 | } 44 | 45 | return lastID; 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/java/bca/fts/dao/NotificationDao.java: -------------------------------------------------------------------------------- 1 | package bca.fts.dao; 2 | 3 | import java.sql.*; 4 | import org.apache.log4j.*; 5 | 6 | import bca.fts.util.*; 7 | 8 | public class NotificationDao { 9 | 10 | // the logger object 11 | private static final Logger logger = Logger.getLogger(NotificationDao.class); 12 | 13 | // this method counts the no of files to display as notification 14 | public static int giveNotification(String branch) { 15 | 16 | Connection con = null; 17 | PreparedStatement ps = null; 18 | ResultSet res = null; 19 | 20 | int newFiles = 0; 21 | 22 | String sql = "SELECT COUNT(*) FROM files WHERE curLoc = ? AND ( status=\"PENDING\" OR status=\"REJECTED\")"; 23 | 24 | try { 25 | con = DatabaseConnector.getConnection(); 26 | ps = con.prepareStatement(sql); 27 | 28 | ps.setString(1, branch); 29 | 30 | res = ps.executeQuery(); 31 | 32 | // get the no of incoming files 33 | if (res.next()) { 34 | newFiles = res.getInt(1); 35 | } 36 | 37 | } catch (Exception e) { 38 | logger.error(e); 39 | 40 | newFiles = -1; // database error 41 | } finally { 42 | 43 | // clean up database resources 44 | DatabaseConnector.closeResultSet(res); 45 | DatabaseConnector.closePreStatement(ps); 46 | DatabaseConnector.freeConncetion(con); 47 | } 48 | 49 | return newFiles; 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/java/bca/fts/model/AdminBean.java: -------------------------------------------------------------------------------- 1 | // this bean represents the admin 2 | 3 | package bca.fts.model; 4 | 5 | public class AdminBean { 6 | 7 | private String userName = null; 8 | private String password = null; 9 | 10 | public String getUserName() { 11 | return userName; 12 | } 13 | 14 | public String getPassword() { 15 | return password; 16 | } 17 | 18 | public void setPassword(String password) { 19 | this.password = password; 20 | } 21 | 22 | public void setUserName(String userName) { 23 | this.userName = userName; 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /src/java/bca/fts/model/BranchBean.java: -------------------------------------------------------------------------------- 1 | // this bean represents a branch 2 | 3 | package bca.fts.model; 4 | 5 | public class BranchBean { 6 | 7 | private int id = 0; 8 | private String officeName = null; 9 | private String headName = null; 10 | private String username = null; 11 | private String password = null; 12 | 13 | 14 | public void setHeadName(String headName) { 15 | this.headName = headName; 16 | } 17 | 18 | public void setOfficeName(String officeName) { 19 | this.officeName = officeName; 20 | } 21 | 22 | public void setPassword(String password) { 23 | this.password = password; 24 | } 25 | 26 | public void setUsername(String username) { 27 | this.username = username; 28 | } 29 | 30 | public void setId(int id) { 31 | this.id = id; 32 | } 33 | 34 | 35 | public int getId() { 36 | return id; 37 | } 38 | 39 | public String getHeadName() { 40 | return headName; 41 | } 42 | 43 | public String getOfficeName() { 44 | return officeName; 45 | } 46 | 47 | public String getPassword() { 48 | return password; 49 | } 50 | 51 | public String getUsername() { 52 | return username; 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /src/java/bca/fts/model/ClosedFileBean.java: -------------------------------------------------------------------------------- 1 | // this bean represents a closed file 2 | 3 | package bca.fts.model; 4 | 5 | import java.text.SimpleDateFormat; 6 | import java.util.Date; 7 | import org.apache.log4j.Logger; 8 | 9 | public class ClosedFileBean { 10 | 11 | // the logger object 12 | private static final Logger logger = Logger.getLogger(ClosedFileBean.class); 13 | 14 | private int id = 0; 15 | private String no = null; 16 | private String name = null; 17 | private String type = null; 18 | private String owner = null; 19 | private String dateOfSend = null; 20 | private String curLoc = null; 21 | private String dateOfClose = null; 22 | 23 | // for pendind, rejected file sorting 24 | private Date date = null; 25 | 26 | 27 | // all the "SETTER" methods 28 | 29 | public void setDate() { 30 | SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy 'at' hh:mm:ss a"); 31 | 32 | try { 33 | 34 | this.date = formatter.parse(this.dateOfClose); 35 | } 36 | catch (Exception e) { 37 | logger.error(e); 38 | } 39 | } 40 | 41 | public void setOwner(String owner) { 42 | this.owner = owner; 43 | } 44 | 45 | public void setId(int id) { 46 | this.id = id; 47 | } 48 | 49 | public void setNo(String no) { 50 | this.no = no; 51 | } 52 | 53 | public void setName(String name) { 54 | this.name = name; 55 | } 56 | 57 | public void setType(String type) { 58 | this.type = type; 59 | } 60 | 61 | public void setDateOfSend(String dateOfSend) { 62 | this.dateOfSend = dateOfSend; 63 | } 64 | 65 | public void setCurLoc(String curLoc) { 66 | this.curLoc = curLoc; 67 | } 68 | 69 | public void setDateOClose(String dateOfClose) { 70 | this.dateOfClose = dateOfClose; 71 | } 72 | 73 | 74 | // all the "GETTER" methods 75 | 76 | public Date getDate() { 77 | return date; 78 | } 79 | 80 | public String getOwner() { 81 | return owner; 82 | } 83 | 84 | public int getId() { 85 | return id; 86 | } 87 | 88 | public String getNo() { 89 | return no; 90 | } 91 | 92 | public String getName() { 93 | return name; 94 | } 95 | 96 | public String getType() { 97 | return type; 98 | } 99 | 100 | 101 | public String getDateOfSend() { 102 | return dateOfSend; 103 | } 104 | 105 | public String getCurLoc() { 106 | return curLoc; 107 | } 108 | 109 | public String getDateOfClose() { 110 | return dateOfClose; 111 | } 112 | 113 | } 114 | -------------------------------------------------------------------------------- /src/java/bca/fts/model/SendFileBean.java: -------------------------------------------------------------------------------- 1 | // this bean represents a sent file 2 | 3 | package bca.fts.model; 4 | 5 | import java.text.SimpleDateFormat; 6 | import java.util.Date; 7 | import org.apache.log4j.Logger; 8 | 9 | public class SendFileBean { 10 | 11 | // the logger object 12 | private static final Logger logger = Logger.getLogger(SendFileBean.class); 13 | 14 | private int fileId = 0; 15 | private String senderBranch = null; 16 | private String forwardBranch = null; 17 | private String dateOfSend = null; 18 | private String timeOfSend = null; 19 | private String remark = null; 20 | 21 | // for sorting 22 | private Date date = null; 23 | 24 | // all the "getter" methods 25 | 26 | public Date getDate() { 27 | return date; 28 | } 29 | 30 | public String getTimeOfSend() { 31 | return timeOfSend; 32 | } 33 | 34 | public String getRemark() { 35 | return remark; 36 | } 37 | 38 | public int getFileId() { 39 | return fileId; 40 | } 41 | 42 | public String getSenderBranch() { 43 | return senderBranch; 44 | } 45 | 46 | public String getForwardBranch() { 47 | return forwardBranch; 48 | } 49 | 50 | public String getDateOfSend() { 51 | return dateOfSend; 52 | } 53 | 54 | 55 | // all the "setter" methods 56 | public void setDate() { 57 | SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy 'at' hh:mm:ss a"); 58 | 59 | try { 60 | 61 | this.date = formatter.parse(this.dateOfSend); 62 | } 63 | catch (Exception e) { 64 | logger.error(e); 65 | } 66 | } 67 | 68 | public void setTimeOfSend( String timeOfSend ) { 69 | this.timeOfSend = timeOfSend; 70 | } 71 | 72 | public void setFileId(int fileId) { 73 | this.fileId = fileId; 74 | } 75 | 76 | public void setSenderBranch(String senderBranch) { 77 | this.senderBranch = senderBranch; 78 | } 79 | 80 | public void setDateOfSend(String dateOfSend) { 81 | this.dateOfSend = dateOfSend; 82 | } 83 | 84 | public void setForwardBranch( String forwardBranch ) { 85 | this.forwardBranch = forwardBranch; 86 | } 87 | 88 | public void setRemark(String remark) { 89 | this.remark = remark; 90 | } 91 | 92 | } -------------------------------------------------------------------------------- /src/java/bca/fts/model/UserBean.java: -------------------------------------------------------------------------------- 1 | // this bean represents a branch user 2 | 3 | package bca.fts.model; 4 | 5 | public class UserBean { 6 | 7 | private String userName = null; 8 | private String password = null; 9 | 10 | public UserBean() { 11 | userName = " "; 12 | password = " "; 13 | } 14 | 15 | public String getUserName() { 16 | return userName; 17 | } 18 | 19 | public String getPassword() { 20 | return password; 21 | } 22 | 23 | public void setPassword(String password) { 24 | this.password = password; 25 | } 26 | 27 | public void setUserName(String userName) { 28 | this.userName = userName; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/java/bca/fts/util/AdminAccountFilter.java: -------------------------------------------------------------------------------- 1 | package bca.fts.util; 2 | 3 | import java.io.*; 4 | import javax.servlet.*; 5 | import javax.servlet.http.*; 6 | 7 | public class AdminAccountFilter implements Filter { 8 | 9 | private FilterConfig filterConfig = null; 10 | 11 | @Override 12 | public void init(FilterConfig filterConfig) throws ServletException { 13 | 14 | this.filterConfig = filterConfig; 15 | } 16 | 17 | @Override 18 | public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) 19 | throws IOException, ServletException { 20 | 21 | HttpServletResponse res = (HttpServletResponse) response; 22 | HttpServletRequest req = (HttpServletRequest) request; 23 | 24 | ServletContext sc = filterConfig.getServletContext(); 25 | int adminAccount = (Integer) sc.getAttribute("adminAccount"); 26 | 27 | if (adminAccount == -1) { // database error occured 28 | 29 | // forward request to the app's home page 30 | res.sendRedirect("/FTS/index.jsp"); 31 | } else if (adminAccount == 1 && req.getRequestURI().contains("install.jsp")) { 32 | 33 | // forward request to the install.jsp 34 | res.sendRedirect("/FTS/admin/index.jsp"); 35 | } else if (adminAccount == 1) { 36 | 37 | // forward request to the index.jsp 38 | chain.doFilter(request, response); 39 | } else if (adminAccount == 0 && req.getRequestURI().contains("createAcc.do")) { 40 | 41 | // forward request to the index.jsp 42 | chain.doFilter(request, response); 43 | } else { 44 | // forward request to the install.jsp 45 | req.getRequestDispatcher("install.jsp").forward(req, res); 46 | } 47 | 48 | } 49 | 50 | @Override 51 | public void destroy() { 52 | 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /src/java/bca/fts/util/AdminFilter.java: -------------------------------------------------------------------------------- 1 | // this filter is responsible for admin Authorisation 2 | package bca.fts.util; 3 | 4 | import java.io.IOException; 5 | import javax.servlet.*; 6 | import javax.servlet.http.*; 7 | import org.apache.log4j.*; 8 | 9 | public class AdminFilter implements Filter { 10 | 11 | // the logger object 12 | private static final Logger logger = Logger.getLogger(AdminFilter.class); 13 | 14 | private FilterConfig filterConfig = null; 15 | 16 | @Override 17 | public void init(FilterConfig filterConfig) throws ServletException { 18 | 19 | this.filterConfig = filterConfig; 20 | } 21 | 22 | @Override 23 | public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) 24 | throws IOException, ServletException { 25 | 26 | HttpServletResponse res = (HttpServletResponse) response; 27 | HttpServletRequest req = (HttpServletRequest) request; 28 | 29 | HttpSession session = req.getSession(false); // give exsisting session, don't create one 30 | 31 | if (session == null) { 32 | 33 | logger.warn("unauthorised attempt to access the secure admin resource has been denied"); 34 | 35 | res.sendRedirect("/FTS/"); 36 | 37 | } else if (session.getAttribute("admin") == null) { 38 | 39 | logger.warn("unauthorised attempt to access the secure admin resource has been denied"); 40 | 41 | session.invalidate(); // invalidate the current session 42 | res.sendRedirect("/FTS/"); 43 | } else { 44 | 45 | // tell the browser not to cache the secure pages 46 | res.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // for HTTP 1.1 47 | res.setHeader("Pragma", "no-cache"); // for HTTP 1.0. 48 | res.setDateHeader("Expires", 0); // Proxies. 49 | 50 | // forward request to the next resource( html/jsp/servlet ) 51 | chain.doFilter(request, response); 52 | } 53 | 54 | } 55 | 56 | @Override 57 | public void destroy() { 58 | } 59 | 60 | } 61 | -------------------------------------------------------------------------------- /src/java/bca/fts/util/ApplicationtListener.java: -------------------------------------------------------------------------------- 1 | package bca.fts.util; 2 | 3 | import javax.servlet.*; 4 | import org.apache.log4j.*; 5 | import bca.fts.dao.AdminLoginCheckDao; 6 | 7 | public class ApplicationtListener implements ServletContextListener { 8 | 9 | // the logger object 10 | private static final Logger logger = Logger.getLogger(ApplicationtListener.class); 11 | 12 | @Override 13 | public void contextInitialized(ServletContextEvent event) { 14 | logger.info("FTS has been started."); 15 | 16 | ServletContext sc = event.getServletContext(); 17 | 18 | // verify the admin account 19 | sc.setAttribute("adminAccount", AdminLoginCheckDao.checkAdminAcc()); 20 | } 21 | 22 | @Override 23 | public void contextDestroyed(ServletContextEvent event) { 24 | logger.info("FTS has been stoped."); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/java/bca/fts/util/BranchFilter.java: -------------------------------------------------------------------------------- 1 | // this filter is responsible for branch Authorisation 2 | package bca.fts.util; 3 | 4 | import java.io.IOException; 5 | import javax.servlet.*; 6 | import javax.servlet.http.*; 7 | import org.apache.log4j.*; 8 | 9 | public class BranchFilter implements Filter { 10 | 11 | // the logger object 12 | private static final Logger logger = Logger.getLogger(BranchFilter.class); 13 | 14 | private FilterConfig filterConfig = null; 15 | 16 | @Override 17 | public void init(FilterConfig filterConfig) throws ServletException { 18 | 19 | this.filterConfig = filterConfig; 20 | } 21 | 22 | @Override 23 | public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) 24 | throws IOException, ServletException { 25 | 26 | HttpServletResponse res = (HttpServletResponse) response; 27 | HttpServletRequest req = (HttpServletRequest) request; 28 | 29 | HttpSession session = req.getSession(false); // give exsisting session, don't create one 30 | 31 | if (session == null) { 32 | 33 | logger.warn("unauthorised attempt to access the secure branch resource has been denied"); 34 | 35 | // for the RequestDispatcher, "/" means context path of the web app 36 | res.sendRedirect("/FTS/"); 37 | 38 | } else if (session.getAttribute("branch") == null) { 39 | 40 | logger.warn("unauthorised attempt to access the secure branch resource has been denied"); 41 | 42 | session.invalidate(); 43 | res.sendRedirect("/FTS/"); 44 | } else { 45 | 46 | // tell the browser not to cache the secure pages 47 | res.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // for HTTP 1.1. 48 | res.setHeader("Pragma", "no-cache"); // for old HTTP 1.0. 49 | res.setDateHeader("Expires", 0); // Proxies. 50 | 51 | // forward request to the next resource( html/jsp/servlet ) 52 | chain.doFilter(request, response); 53 | } 54 | 55 | } 56 | 57 | @Override 58 | public void destroy() { 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /src/java/bca/fts/util/DatabaseConnector.java: -------------------------------------------------------------------------------- 1 | // this class implements Java's Conncetion Pulling 2 | // to SPEED UP Database OPERATIONS 3 | // DATE: 18-02-2015 4 | package bca.fts.util; 5 | 6 | import java.sql.*; 7 | import javax.sql.DataSource; 8 | import javax.naming.InitialContext; 9 | import org.apache.log4j.*; 10 | 11 | public class DatabaseConnector { 12 | 13 | private static InitialContext ic = null; 14 | private static DataSource ds = null; 15 | 16 | // the logger object 17 | private static Logger logger = Logger.getLogger(DatabaseConnector.class); 18 | 19 | // this method will be called only once 20 | private static void initMethod() { 21 | 22 | try { 23 | ic = new InitialContext(); 24 | ds = (DataSource) ic.lookup("java:/comp/env/jdbc/file_tracking"); 25 | } catch (Exception e) { 26 | logger.fatal(e, e); 27 | } 28 | } 29 | 30 | public static Connection getConnection() { 31 | 32 | Connection con = null; 33 | 34 | if (ic == null || ds == null) { 35 | initMethod(); 36 | } 37 | 38 | try { 39 | con = ds.getConnection(); 40 | } catch (Exception e) { 41 | logger.fatal(e, e); 42 | } 43 | 44 | return con; 45 | } 46 | 47 | public static void freeConncetion(Connection con) { 48 | try { 49 | if (con != null) { 50 | con.close(); 51 | } 52 | } catch (Exception e) { 53 | logger.fatal(e, e); 54 | } 55 | } 56 | 57 | public static void closeResultSet(ResultSet res) { 58 | try { 59 | if (res != null) { 60 | res.close(); 61 | } 62 | } catch (Exception e) { 63 | logger.fatal(e, e); 64 | } 65 | } 66 | 67 | public static void closeStatement(Statement st) { 68 | try { 69 | if (st != null) { 70 | st.close(); 71 | } 72 | } catch (Exception e) { 73 | logger.fatal(e, e); 74 | } 75 | } 76 | 77 | public static void closePreStatement(PreparedStatement pst) { 78 | try { 79 | if (pst != null) { 80 | pst.close(); 81 | } 82 | } catch (Exception e) { 83 | logger.fatal(e, e); 84 | } 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /src/java/bca/fts/util/DateValidator.java: -------------------------------------------------------------------------------- 1 | // this class will validate a given date 2 | package bca.fts.util; 3 | 4 | import java.text.SimpleDateFormat; 5 | import java.util.Date; 6 | import org.apache.log4j.*; 7 | 8 | public class DateValidator { 9 | 10 | // the logger object 11 | private static final Logger logger = Logger.getLogger(DateValidator.class); 12 | 13 | // this method wii validate a date 14 | public static boolean validateDate(String date) { 15 | 16 | String[] tokens = null; 17 | int day = 0, month = 0, year = 0; 18 | 19 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy"); 20 | int currentYear = Integer.valueOf(sdf.format(new Date())); 21 | 22 | boolean result = false; 23 | 24 | if (date.isEmpty() == false) { 25 | 26 | if (date.length() == 10) { 27 | 28 | tokens = date.split("[-]"); 29 | 30 | if (tokens.length == 3 && tokens[0].length() == 2 && tokens[1].length() == 2 && tokens[2].length() == 4) { 31 | 32 | // convert the strings to number 33 | try { 34 | day = Integer.valueOf(tokens[0]); 35 | month = Integer.valueOf(tokens[1]); 36 | year = Integer.valueOf(tokens[2]); 37 | 38 | if ((day >= 1 && day <= 31) && (month >= 1 && month <= 12) && (year > 1960 && year <= currentYear)) { 39 | 40 | // check for february 41 | if (month == 2) { 42 | 43 | if ((year % 4 == 0) && day <= 29) { 44 | result = true; 45 | } else if ((year % 4 != 0) && day <= 28) { 46 | result = true; 47 | } 48 | 49 | } // check for 30-days months 50 | else if ((month == 4 || month == 6 || month == 9 || month == 11) && day <= 30) { 51 | result = true; 52 | } // check for 31-days months 53 | else if (month == 1 || month == 3 || month == 5 || month == 7 || month == 8 54 | || month == 10 || month == 12) { 55 | 56 | result = true; 57 | } 58 | 59 | } 60 | } catch (NumberFormatException e) { 61 | logger.error(e); 62 | 63 | result = false; 64 | } 65 | } 66 | } 67 | 68 | } 69 | 70 | return result; 71 | } 72 | 73 | } 74 | -------------------------------------------------------------------------------- /src/java/bca/fts/util/PasswordValidator.java: -------------------------------------------------------------------------------- 1 | // this class will validate a given password 2 | package bca.fts.util; 3 | 4 | import java.util.regex.*; 5 | 6 | public class PasswordValidator { 7 | 8 | public static String validatePassword(String pass) { 9 | 10 | String message = ""; 11 | String alphabate = "[a-zA-z]+"; 12 | String digit = "\\d+"; 13 | String special = "[^a-zA-Z0-9]+"; 14 | 15 | Pattern digitPattern = Pattern.compile(digit); 16 | Pattern specPattern = Pattern.compile(special); 17 | Pattern alphaPattern = Pattern.compile(alphabate); 18 | 19 | if (pass.length() < 8) { 20 | message = "Password is less then 8 characters"; 21 | return message; 22 | } 23 | 24 | // check for digits 25 | if (digitPattern.matcher(pass).find() == false) { 26 | message = "Password does not contain a digit"; 27 | return message; 28 | } 29 | 30 | // check for special character 31 | if (specPattern.matcher(pass).find() == false) { 32 | message = "Password does not contain a special character"; 33 | return message; 34 | } 35 | 36 | // check for alphabates 37 | if (alphaPattern.matcher(pass).find() == false) { 38 | message = "Password does not contain an alphabate"; 39 | return message; 40 | } 41 | 42 | return message; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/java/bca/fts/util/SessionListener.java: -------------------------------------------------------------------------------- 1 | package bca.fts.util; 2 | 3 | import javax.servlet.http.*; 4 | 5 | public class SessionListener implements HttpSessionListener { 6 | 7 | @Override 8 | public void sessionCreated(HttpSessionEvent se) { 9 | 10 | } 11 | 12 | @Override 13 | public void sessionDestroyed(HttpSessionEvent se) { 14 | 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /src/java/displaytag.properties: -------------------------------------------------------------------------------- 1 | export.types=csv excel xml pdf rtf 2 | export.excel=true 3 | export.csv=true 4 | export.xml=true 5 | export.pdf=true 6 | export.rtf=true 7 | export.amount=page 8 | export.excel.class=org.displaytag.export.excel.DefaultHssfExportView 9 | export.pdf.class=org.displaytag.export.DefaultPdfExportView 10 | export.rtf.class=org.displaytag.export.DefaultRtfExportView -------------------------------------------------------------------------------- /src/java/log4j.properties: -------------------------------------------------------------------------------- 1 | # defining the root logger with two appender 2 | log4j.rootLogger=INFO, infoApp, errorApp 3 | 4 | # Configuration of the infoApp appender. It will log at log level INFO and WARN 5 | 6 | log4j.appender.infoApp=org.apache.log4j.DailyRollingFileAppender 7 | log4j.appender.infoApp.File=FTS/info_log.log 8 | log4j.appender.infoApp.Threshold=INFO 9 | log4j.appender.infoApp.DatePattern='.' yyyy-MM-dd 10 | 11 | # a filter is used to filtering out ERROR and FATAL 12 | log4j.appender.infoApp.filter.a=org.apache.log4j.varia.LevelRangeFilter 13 | log4j.appender.infoApp.filter.a.LevelMin=INFO 14 | log4j.appender.infoApp.filter.a.LevelMax=WARN 15 | log4j.appender.infoApp.filter.a.AcceptOnMatch=true 16 | 17 | log4j.appender.infoApp.layout=org.apache.log4j.PatternLayout 18 | log4j.appender.infoApp.layout.ConversionPattern=%d{dd-MM-yyyy, HH:mm:ss} %p %C.%M:%L :: %m%n 19 | 20 | 21 | # Configuration of the errorApp appender. It will log at log level ERROR and FATAL 22 | 23 | log4j.appender.errorApp=org.apache.log4j.DailyRollingFileAppender 24 | log4j.appender.errorApp.Threshold=ERROR 25 | log4j.appender.errorApp.File=FTS/debug_log.log 26 | log4j.appender.errorApp.DatePattern='.' yyyy-MM-dd 27 | log4j.appender.errorApp.layout=org.apache.log4j.PatternLayout 28 | log4j.appender.errorApp.layout.ConversionPattern=%d{dd-MM-yyyy HH:mm:ss} %p %C.%M:%L :: %m%n 29 | -------------------------------------------------------------------------------- /web/404error.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 404 Error 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 |
21 |

HTTP 404 Error: Page Not Found!

22 | 23 |

24 | We are really sorry, But the page or resource you are looking for cannot not be found. 25 |

26 |
27 |
28 | 29 |

30 | 31 | 32 | 33 | 34 | Go Back to Home 35 | 36 | 37 | 38 | Go Back to Home 39 | 40 | 41 | 42 | Go Back to Home page 43 | 44 | 45 | 46 | 47 |

48 |
49 | 50 |
51 | 52 | 53 | -------------------------------------------------------------------------------- /web/500error.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 500 Error 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 |
21 |

HTTP 500 Error: Internal Server Error!

22 | 23 |

24 | The server encountered an error while fulfilling your request. Please contact the webmaster.
25 | We are really sorry for the inconvenience. 26 |

27 | 28 |

29 | Error message form the server: ${ pageContext.exception }
30 |

31 |
32 |
33 | 34 |

35 | 36 | 37 | 38 | 39 | Go Back to Home 40 | 41 | 42 | 43 | Go Back to Home 44 | 45 | 46 | 47 | Go Back to Home page 48 | 49 | 50 | 51 | 52 |

53 | 54 |
55 |
56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /web/META-INF/context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | -------------------------------------------------------------------------------- /web/WEB-INF/tags/showFileData.tag: -------------------------------------------------------------------------------- 1 | <%@tag description="Displays file-track record" pageEncoding="UTF-8"%> 2 | <%@tag import="java.util.Arrays" %> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | <% 18 | 19 | String[] dates = (String[]) request.getAttribute("dates"); 20 | String[] path = (String[]) request.getAttribute("path"); 21 | String[] rDates = ( String[] ) request.getAttribute( "rDates"); 22 | 23 | String recieveDates = "Not recieved yet"; 24 | 25 | // While displaying "recieve dates", elements should be counted from index[1] 26 | 27 | for ( int i = 0; i < dates.length; i++ ) { 28 | 29 | %> 30 | 31 | 32 | 33 | 34 | 35 | 49 | 50 | 51 | 52 | <% 53 | } 54 | %> 55 | 56 | 57 | 58 |
SENDER BRANCH DATE-OF-SEND FORWARD-TO-BRANCH DATE-OF-RECEIVE
<%= path[i] %> <%= dates[i] %> <%= path[i + 1] %> 36 | 37 | 38 | if( i + 1 == rDates.length ) { 39 | recieveDates = "Not recieved yet"; 40 | } 41 | else { 42 | recieveDates = rDates[ i + 1 ]; 43 | } 44 | 45 | 46 | <%= recieveDates %> 47 | 48 |
-------------------------------------------------------------------------------- /web/admin/index.jsp: -------------------------------------------------------------------------------- 1 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 2 | 3 | <%-- Don't create session for this page, let the session to create after successful login --%> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Admin Login Page 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 |
24 | 25 |
${requestScope.message}
26 |
${requestScope.errorMessage}
27 | 28 |
29 |
30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 50 | 51 | 52 | 53 |
Administrator Login Panel
Username:    
  
Password:    
Login 48 | 49 | Login
54 |
55 | 56 |
57 | 58 |
59 | 60 | 61 | -------------------------------------------------------------------------------- /web/admin/install.jsp: -------------------------------------------------------------------------------- 1 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 2 | 3 | <%-- Don't create session for this page, let the session to create after successful login --%> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | Admin Registration Page 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 |
27 | 28 |

29 | Password must be of at least 8 characters, must contain at least one alphabet, one digit and one special character 30 |

31 |
32 | 33 |
${requestScope.errorMessage}
34 | 35 |
36 |
37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 58 | 61 | 62 | 63 |
Create The Administrator Account...
Username:    
Password:    
Confirm Password:    
56 | 57 | 59 | 60 |
64 | 65 |
66 | 67 |
68 | 69 |
70 | 71 |
72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /web/admin/pages/branchList.jsp: -------------------------------------------------------------------------------- 1 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 2 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 3 | <%@taglib uri="http://displaytag.sf.net" prefix="display" %> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | Branch Report Page 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
32 | 33 |
34 | 35 | 36 | 37 | List of Registered Branch... 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 |
46 | 47 | 48 |
49 | 50 |
51 | 52 | 53 |
54 | 55 | 56 |
57 | 58 |
59 | 60 |
61 | 62 |
63 | 64 |
65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /web/admin/pages/changePassword.jsp: -------------------------------------------------------------------------------- 1 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 8 | Admin Password Change Page 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 |
24 | 25 |

26 | Password must be of at least 8 characters, must contain at least one alphabet, one digit and one special character 27 |

28 |
29 | 30 |
${requestScope.errorMessage}
31 | 32 |
33 | 34 |
35 | 36 | 37 | 38 | 39 | 40 | 41 | 44 | 45 | 46 | 47 | 50 | 51 | 52 | 53 | 56 | 57 | 58 | 59 | 63 | 64 | 65 |
Change Admin Password
Enter Old Password: 42 |    43 |
Enter New Password: 48 |    49 |
Confirm New Password: 54 |    55 |
60 |   61 | 62 |
66 | 67 |
68 | 69 |
70 | 71 |
72 | 73 |
74 | 75 | 76 | 77 | -------------------------------------------------------------------------------- /web/admin/pages/closedFiles.jsp: -------------------------------------------------------------------------------- 1 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 2 | <%@taglib uri="http://displaytag.sf.net" prefix="display" %> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Closed Files Page 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 |
30 | 31 |
32 | 33 | 34 | List of Closed Files... 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 |
56 | 57 |
58 | 59 |
60 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /web/admin/pages/navGeneral.html: -------------------------------------------------------------------------------- 1 |
2 | | Back to My Account 3 | 4 |
5 |
6 | 7 | -------------------------------------------------------------------------------- /web/admin/pages/navReport.html: -------------------------------------------------------------------------------- 1 | 9 | 10 | -------------------------------------------------------------------------------- /web/admin/pages/navSearch.html: -------------------------------------------------------------------------------- 1 | 8 | 9 | -------------------------------------------------------------------------------- /web/admin/pages/pendingFiles.jsp: -------------------------------------------------------------------------------- 1 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 2 | <%@taglib uri="http://displaytag.sf.net" prefix="display" %> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Pending Files Page 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 |
30 | 31 |
32 | 33 | 34 | List of Pending Files... 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 |
53 | 54 |
55 | 56 |
57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /web/admin/pages/processingFiles.jsp: -------------------------------------------------------------------------------- 1 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 2 | <%@taglib uri="http://displaytag.sf.net" prefix="display" %> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | Processing Files Page 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 |
30 | 31 |
32 | 33 | 34 | 35 | List of Processing Files... 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 |
57 | 58 |
59 | 60 |
61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /web/admin/pages/rejectedFiles.jsp: -------------------------------------------------------------------------------- 1 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 2 | <%@taglib uri="http://displaytag.sf.net" prefix="display" %> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Rejected Files Page 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 |
30 | 31 |
32 | 33 | 34 | 35 | List of Rejected Files... 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 |
55 | 56 |
57 | 58 |
59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /web/admin/pages/reportsAdmin.jsp: -------------------------------------------------------------------------------- 1 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Admin Reports Page 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 |
22 | 23 |
${ requestScope.errorMessage }
24 |
25 | 26 |

Generating Reports for Admin...

27 | 28 |
29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 |
View The Report Of
List of Registered Files
List of Pending Files
List of Rejected Files
List of Processing Files
List of Closed Files
60 | 61 | 62 |
63 | 64 | 65 | 66 |
67 | 68 |
69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /web/admin/pages/trackFile.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | Track File Page 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 |
23 | 24 |
25 | 26 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 |
27 | 28 | search file Choose your option.. 29 | 30 |
Track file by file ID
Track file by file no
Track file by file name
Track file by file-status
Track file by branch
Track file by date of send
Track file by date of receive
54 | 55 |
56 | 57 |
58 | 59 |
60 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /web/admin/pages/welcomeAdmin.jsp: -------------------------------------------------------------------------------- 1 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 2 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Admin Welcome Page 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 32 | 33 |
34 |

Welcome Admin-  

35 |
36 | 37 |

38 | ${requestScope.message} 39 | ${requestScope.errorMessage} 40 |

41 |
42 | 43 |
44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /web/branch/messageToBranch.jsp: -------------------------------------------------------------------------------- 1 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Successful File Registration 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 26 | 27 |
28 | 29 |
30 |
31 | 32 |

33 | 34 | File NO:   ${ requestScope.fileBean.no}
35 | File Name:   ${ requestScope.fileBean["name"] }


36 | 37 | -- has been registered successfully.

38 | The corresponding file ID is: ${ requestScope.fileBean.id } 39 |
40 |

41 | 42 |
43 | 44 |
45 | 46 |
47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /web/branch/navGeneral.html: -------------------------------------------------------------------------------- 1 |
2 | | Back to My Account 3 | 4 |
5 |
6 | 7 | -------------------------------------------------------------------------------- /web/branch/navSearch.html: -------------------------------------------------------------------------------- 1 | 8 | 9 | -------------------------------------------------------------------------------- /web/branch/passChange.jsp: -------------------------------------------------------------------------------- 1 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Branch Password Change Page 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 |
25 | 26 |

27 | Password must be of at least 8 characters, must contain at least one alphabet, one digit and one special character 28 |

29 |
30 | 31 |
${requestScope.errorMessage}
32 | 33 |
34 | 35 |
36 | 37 | 38 | 39 | 40 | 41 | 42 | 45 | 46 | 47 | 48 | 51 | 52 | 53 | 54 | 57 | 58 | 59 | 60 | 64 | 65 | 66 |
Change Branch Password
Enter Old Password: 43 |    44 |
Enter New Password: 49 |    50 |
Confirm New Password: 55 |    56 |
61 |   62 | 63 |
67 | 68 |
69 | 70 |
71 |
72 | 73 |
74 | 75 | 76 | 77 | -------------------------------------------------------------------------------- /web/branch/trackFile.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Track File Page 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 |
22 | 23 |
24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 |
26 | 27 | search file Choose your option.. 28 | 29 |
Track file by file ID
Track file by file no
Track file by file name
Track file by date of send
Track file by date of receive
47 | 48 |
49 | 50 |
51 | 52 |
53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /web/branch/welcomeBranch.jsp: -------------------------------------------------------------------------------- 1 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 2 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Branch Welcome Page 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 32 | 33 |
34 |

Welcome User-  

35 | 36 |

Login from Branch-  

37 | 38 |

39 |
40 | <%-- for displaying notification --%> 41 | 42 | ${ sessionScope.notification } 43 | 44 |

45 | 46 |

47 | <%-- for success and error message --%> 48 | ${requestScope.message} 49 | ${requestScope.errorMessage} 50 |

51 |
52 | 53 |
54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /web/css/displaytag.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-size: 14px; 3 | font-family: Consolas, "Courier New", Times, serif; 4 | background-color: white; 5 | } 6 | 7 | table { 8 | border: 1px solid #666; 9 | width: 100%; 10 | margin: 20px 0 20px 0 !important; 11 | } 12 | 13 | th,td { 14 | padding: 2px 4px 2px 4px !important; 15 | text-align: center; 16 | vertical-align: top; 17 | } 18 | 19 | thead tr { 20 | background-color: #fc0; 21 | } 22 | 23 | th.sorted { 24 | background-color: orange; 25 | } 26 | 27 | th a,th a:visited { 28 | color: black; 29 | } 30 | 31 | th a:hover { 32 | text-decoration: underline; 33 | color: black; 34 | } 35 | 36 | th.sorted a,th.sortable a { 37 | background-position: right; 38 | display: block; 39 | width: 100%; 40 | } 41 | 42 | tr.odd { 43 | background-color: #fff 44 | } 45 | 46 | tr.tableRowEven,tr.even { 47 | background-color: #fea 48 | } 49 | 50 | div.exportlinks { 51 | background-color: #eee; 52 | border: 1px dotted #999; 53 | padding: 2px 4px 2px 4px; 54 | margin: 2px 0 10px 0; 55 | width: 79%; 56 | } 57 | 58 | span.export { 59 | padding: 0 4px 1px 20px; 60 | display: inline; 61 | display: inline-block; 62 | cursor: pointer; 63 | } 64 | 65 | span.excel { 66 | background-image: url(../img/ico_file_excel.png); 67 | } 68 | 69 | span.csv { 70 | background-image: url(../img/ico_file_csv.png); 71 | } 72 | 73 | span.xml { 74 | background-image: url(../img/ico_file_xml.png); 75 | } 76 | 77 | span.pdf { 78 | background-image: url(../img/ico_file_pdf.png); 79 | } 80 | 81 | span.rtf { 82 | background-image: url(../img/ico_file_rtf.png); 83 | } 84 | 85 | span.pagebanner { 86 | background-color: #eee; 87 | border: 1px dotted #999; 88 | padding: 2px 4px 2px 4px; 89 | width: 79%; 90 | margin-top: 10px; 91 | display: block; 92 | border-bottom: none; 93 | } 94 | 95 | span.pagelinks { 96 | background-color: #eee; 97 | border: 1px dotted #999; 98 | padding: 2px 4px 2px 4px; 99 | width: 79%; 100 | display: block; 101 | border-top: none; 102 | margin-bottom: -5px; 103 | } 104 | 105 | tr:hover { 106 | background: #eeeeff 107 | } 108 | 109 | caption { 110 | padding-bottom: 7px; 111 | font-size: 16px; 112 | font-weight: bold; 113 | text-align: center; 114 | } 115 | 116 | img { 117 | border: none; 118 | } 119 | 120 | span { 121 | background-repeat: no-repeat; 122 | } 123 | 124 | a:link {text-decoration:none;} 125 | a:visited {text-decoration:none;} 126 | a:hover {text-decoration:underline;} 127 | a:active {text-decoration:underline;} 128 | -------------------------------------------------------------------------------- /web/css/print.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-size: 14px; 3 | font-family: Georgia, "Times New Roman", Times, serif; 4 | background-color: white; 5 | } 6 | 7 | #nav, .pagebanner, .pagelinks, .exportlinks{ 8 | display: none; 9 | } 10 | 11 | 12 | #printData { 13 | width: 100%; 14 | margin: 0; 15 | float: none; 16 | } 17 | 18 | table, th, td { 19 | border: 1px solid #cccccc; 20 | border-collapse: collapse; 21 | padding: 3px; 22 | text-align: center; 23 | } 24 | 25 | table { 26 | width: 100%; 27 | } 28 | 29 | th { 30 | border-bottom: 2px solid black; 31 | } 32 | 33 | caption { 34 | padding-bottom: 7px; 35 | font-size: 17px; 36 | font-weight: bold; 37 | text-align: center; 38 | } 39 | 40 | /* for printers */ 41 | @media print 42 | { 43 | #noPrint { 44 | display: none; 45 | } 46 | 47 | } -------------------------------------------------------------------------------- /web/formNotice.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |

4 | N.B. : A form field with '*' is mandatary. It needs to filled up before submitting the form. 5 |

6 |
-------------------------------------------------------------------------------- /web/header.html: -------------------------------------------------------------------------------- 1 |
2 | file_tracking_system 3 |

4 | FILE TRACKING SYSTEM 5 |

6 |
7 | 8 | -------------------------------------------------------------------------------- /web/img/find.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/web/img/find.png -------------------------------------------------------------------------------- /web/img/fts.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/web/img/fts.jpeg -------------------------------------------------------------------------------- /web/img/help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/web/img/help.png -------------------------------------------------------------------------------- /web/img/ico_file_csv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/web/img/ico_file_csv.png -------------------------------------------------------------------------------- /web/img/ico_file_excel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/web/img/ico_file_excel.png -------------------------------------------------------------------------------- /web/img/ico_file_pdf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/web/img/ico_file_pdf.png -------------------------------------------------------------------------------- /web/img/ico_file_rtf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/web/img/ico_file_rtf.png -------------------------------------------------------------------------------- /web/img/ico_file_xml.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/web/img/ico_file_xml.png -------------------------------------------------------------------------------- /web/img/keys.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/web/img/keys.png -------------------------------------------------------------------------------- /web/img/lock_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyandeep/File-Tracking-System/42ba3fe5cf38f5950b25a35848c74cab4c72cbc6/web/img/lock_open.png -------------------------------------------------------------------------------- /web/index.jsp: -------------------------------------------------------------------------------- 1 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 2 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 3 | 4 | <%--- Don't create session for this page, let the session to create after successful login ---%> 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | File Tracking System 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 |
26 | 27 |
${ requestScope.errorMessage}
28 | 29 |
30 |
31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 55 | 56 |
Branch Login Panel
Username:   
  
Password:   
  
51 | 52 |      53 | 54 |
57 | 58 |
59 |
60 | 61 |
62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /web/js/adminAjax.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function () { 2 | 3 | // fire an AJAX request for autocomplete file names 4 | $('#name').autocomplete({ 5 | autoFocus: true, 6 | source: function (request, response) { 7 | $.ajax({ 8 | url: '/FTS/admin/pages/nameSuggesstion.do', 9 | data: {term: request.term}, 10 | dataType: 'json', 11 | cache: false, 12 | success: function (data) { 13 | response(data); 14 | }, 15 | error: function (jqXHR, textStatus, errorThrown) { 16 | alert("Error in the Database connection!"); 17 | } 18 | 19 | }); 20 | } 21 | }); 22 | }); 23 | -------------------------------------------------------------------------------- /web/js/branchAjax.js: -------------------------------------------------------------------------------- 1 | // fire an AJAX request for autocomplete file names 2 | var ajaxCall = function () { 3 | 4 | $('#name').autocomplete({ 5 | autoFocus: true, 6 | source: function (request, response) { 7 | $.ajax({ 8 | url: '/FTS/branch/nameSuggestion.do', 9 | data: {term: request.term}, 10 | dataType: 'json', 11 | cache: false, 12 | success: function (data) { 13 | response(data); 14 | }, 15 | error: function (jqXHR, textStatus, errorThrown) { 16 | alert("Error in the Database connection!"); 17 | } 18 | 19 | }); 20 | } 21 | }); 22 | }; 23 | 24 | // call this function when the DOM is ready 25 | $(document).ready(ajaxCall); 26 | 27 | 28 | --------------------------------------------------------------------------------