├── .classpath
├── .project
├── .settings
├── .jsdtscope
├── org.eclipse.core.resources.prefs
├── org.eclipse.jdt.core.prefs
├── org.eclipse.wst.common.component
├── org.eclipse.wst.common.project.facet.core.xml
├── org.eclipse.wst.jsdt.ui.superType.container
└── org.eclipse.wst.jsdt.ui.superType.name
├── WebContent
├── Error.jsp
├── META-INF
│ └── MANIFEST.MF
├── WEB-INF
│ ├── lib
│ │ ├── asm-3.3.jar
│ │ ├── asm-commons-3.3.jar
│ │ ├── asm-tree-3.3.jar
│ │ ├── commons-fileupload-1.3.1.jar
│ │ ├── commons-io-2.2.jar
│ │ ├── commons-lang3-3.2.jar
│ │ ├── freemarker-2.3.22.jar
│ │ ├── javassist-3.11.0.GA.jar
│ │ ├── jstl-1.2.jar
│ │ ├── log4j-api-2.2.jar
│ │ ├── log4j-core-2.2.jar
│ │ ├── mysql-connector-java-5.1.7-bin.jar
│ │ ├── ognl-3.0.6.jar
│ │ ├── standard.jar
│ │ ├── struts2-core-2.3.24.jar
│ │ └── xwork-core-2.3.24.jar
│ └── web.xml
├── abilityError.jsp
├── check.jsp
├── deleteError.jsp
├── deleteSuccess.jsp
├── deleteUserInfo.jsp
├── fechError.jsp
├── fetch.jsp
├── haveWithdraw.jsp
├── image
│ ├── background.jpg
│ ├── cunkuan.PNG
│ ├── destroy.PNG
│ ├── leave.PNG
│ ├── lost.PNG
│ ├── modifyInfo.PNG
│ ├── qukuan.PNG
│ ├── selectBalance.PNG
│ ├── singleInfo.PNG
│ ├── transferInfo.PNG
│ └── zhuanzhang.PNG
├── index.jsp
├── inputMoney.jsp
├── js
│ └── jquery.validate.min.js
├── left.jsp
├── login.jsp
├── loginError.jsp
├── logout.jsp
├── main.jsp
├── regist.jsp
├── registSuccess.jsp
├── right.jsp
├── save.jsp
├── selectError.jsp
├── top.jsp
├── trade.jsp
├── tradeInfo.jsp
├── tradeSuccess.jsp
├── transfer.jsp
├── transferError.jsp
├── transferSuccess.jsp
├── updateUser.jsp
├── updateUserSuccess.jsp
├── userInfo.jsp
├── withdraw.jsp
├── withdrawError.jsp
├── withdrawSuccess.jsp
└── wrong.jsp
├── bankmanagersystem.sql
├── build
└── classes
│ ├── com
│ └── bank
│ │ ├── dao
│ │ ├── TradeDAO.class
│ │ ├── UserDao.class
│ │ └── impl
│ │ │ ├── TradeDAOImpl.class
│ │ │ └── UserDAOImpl.class
│ │ ├── domain
│ │ ├── TradeInfo.class
│ │ └── UserInfo.class
│ │ ├── service
│ │ ├── TradeFacade.class
│ │ ├── UserFacade.class
│ │ └── impl
│ │ │ ├── TradeFacadeImpl.class
│ │ │ └── UserFacadeImpl.class
│ │ ├── utils
│ │ ├── DBConnection.class
│ │ └── MD5.class
│ │ └── web
│ │ └── action
│ │ ├── LoginAction.class
│ │ ├── TradeAction.class
│ │ ├── UserAction.class
│ │ └── interceptor
│ │ └── SessionInterceptor.class
│ └── struts.xml
└── src
├── com
└── bank
│ ├── dao
│ ├── TradeDAO.java
│ ├── UserDao.java
│ └── impl
│ │ ├── TradeDAOImpl.java
│ │ └── UserDAOImpl.java
│ ├── domain
│ ├── TradeInfo.java
│ └── UserInfo.java
│ ├── service
│ ├── TradeFacade.java
│ ├── UserFacade.java
│ └── impl
│ │ ├── TradeFacadeImpl.java
│ │ └── UserFacadeImpl.java
│ ├── utils
│ ├── DBConnection.java
│ └── MD5.java
│ └── web
│ └── action
│ ├── LoginAction.java
│ ├── TradeAction.java
│ ├── UserAction.java
│ └── interceptor
│ └── SessionInterceptor.java
└── struts.xml
/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | BankDepositManagerSystem
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.wst.jsdt.core.javascriptValidator
10 |
11 |
12 |
13 |
14 | org.eclipse.jdt.core.javabuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.wst.common.project.facet.core.builder
20 |
21 |
22 |
23 |
24 | org.eclipse.wst.validation.validationbuilder
25 |
26 |
27 |
28 |
29 |
30 | org.eclipse.jem.workbench.JavaEMFNature
31 | org.eclipse.wst.common.modulecore.ModuleCoreNature
32 | org.eclipse.wst.common.project.facet.core.nature
33 | org.eclipse.jdt.core.javanature
34 | org.eclipse.wst.jsdt.core.jsNature
35 |
36 |
37 |
--------------------------------------------------------------------------------
/.settings/.jsdtscope:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//WebContent/trade.jsp=UTF-8
3 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
4 | org.eclipse.jdt.core.compiler.compliance=1.5
5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
7 | org.eclipse.jdt.core.compiler.source=1.5
8 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.wst.common.component:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.wst.common.project.facet.core.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.wst.jsdt.ui.superType.container:
--------------------------------------------------------------------------------
1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary
--------------------------------------------------------------------------------
/.settings/org.eclipse.wst.jsdt.ui.superType.name:
--------------------------------------------------------------------------------
1 | Window
--------------------------------------------------------------------------------
/WebContent/Error.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 |
4 |
5 | 系统错误
6 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
23 |
24 |
--------------------------------------------------------------------------------
/WebContent/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Class-Path:
3 |
4 |
--------------------------------------------------------------------------------
/WebContent/WEB-INF/lib/asm-3.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/WEB-INF/lib/asm-3.3.jar
--------------------------------------------------------------------------------
/WebContent/WEB-INF/lib/asm-commons-3.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/WEB-INF/lib/asm-commons-3.3.jar
--------------------------------------------------------------------------------
/WebContent/WEB-INF/lib/asm-tree-3.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/WEB-INF/lib/asm-tree-3.3.jar
--------------------------------------------------------------------------------
/WebContent/WEB-INF/lib/commons-fileupload-1.3.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/WEB-INF/lib/commons-fileupload-1.3.1.jar
--------------------------------------------------------------------------------
/WebContent/WEB-INF/lib/commons-io-2.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/WEB-INF/lib/commons-io-2.2.jar
--------------------------------------------------------------------------------
/WebContent/WEB-INF/lib/commons-lang3-3.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/WEB-INF/lib/commons-lang3-3.2.jar
--------------------------------------------------------------------------------
/WebContent/WEB-INF/lib/freemarker-2.3.22.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/WEB-INF/lib/freemarker-2.3.22.jar
--------------------------------------------------------------------------------
/WebContent/WEB-INF/lib/javassist-3.11.0.GA.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/WEB-INF/lib/javassist-3.11.0.GA.jar
--------------------------------------------------------------------------------
/WebContent/WEB-INF/lib/jstl-1.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/WEB-INF/lib/jstl-1.2.jar
--------------------------------------------------------------------------------
/WebContent/WEB-INF/lib/log4j-api-2.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/WEB-INF/lib/log4j-api-2.2.jar
--------------------------------------------------------------------------------
/WebContent/WEB-INF/lib/log4j-core-2.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/WEB-INF/lib/log4j-core-2.2.jar
--------------------------------------------------------------------------------
/WebContent/WEB-INF/lib/mysql-connector-java-5.1.7-bin.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/WEB-INF/lib/mysql-connector-java-5.1.7-bin.jar
--------------------------------------------------------------------------------
/WebContent/WEB-INF/lib/ognl-3.0.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/WEB-INF/lib/ognl-3.0.6.jar
--------------------------------------------------------------------------------
/WebContent/WEB-INF/lib/standard.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/WEB-INF/lib/standard.jar
--------------------------------------------------------------------------------
/WebContent/WEB-INF/lib/struts2-core-2.3.24.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/WEB-INF/lib/struts2-core-2.3.24.jar
--------------------------------------------------------------------------------
/WebContent/WEB-INF/lib/xwork-core-2.3.24.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/WEB-INF/lib/xwork-core-2.3.24.jar
--------------------------------------------------------------------------------
/WebContent/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | BankDepositManagerSystem
4 |
5 | struts2
6 | org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
7 |
8 |
9 | struts2
10 | /*
11 |
12 |
13 | index.html
14 | index.htm
15 | index.jsp
16 | default.html
17 | default.htm
18 | default.jsp
19 |
20 |
--------------------------------------------------------------------------------
/WebContent/abilityError.jsp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/abilityError.jsp
--------------------------------------------------------------------------------
/WebContent/check.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" import="com.bank.domain.UserInfo"%>
2 | <%
3 | Object obj=(Object)request.getSession().getAttribute("user");
4 |
5 | if (obj == null) {
6 | response.sendRedirect("wrong.jsp");
7 | } else {
8 | UserInfo userInfo = (UserInfo) obj;
9 | }
10 | %>
11 |
--------------------------------------------------------------------------------
/WebContent/deleteError.jsp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/deleteError.jsp
--------------------------------------------------------------------------------
/WebContent/deleteSuccess.jsp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/deleteSuccess.jsp
--------------------------------------------------------------------------------
/WebContent/deleteUserInfo.jsp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/deleteUserInfo.jsp
--------------------------------------------------------------------------------
/WebContent/fechError.jsp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/fechError.jsp
--------------------------------------------------------------------------------
/WebContent/fetch.jsp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/fetch.jsp
--------------------------------------------------------------------------------
/WebContent/haveWithdraw.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 |
4 |
5 |
6 |
7 | Insert title here
8 |
9 |
10 | 您的帐号已经挂失,如需相关操作,请到指南者银行前台操作。
11 |
12 |
--------------------------------------------------------------------------------
/WebContent/image/background.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/image/background.jpg
--------------------------------------------------------------------------------
/WebContent/image/cunkuan.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/image/cunkuan.PNG
--------------------------------------------------------------------------------
/WebContent/image/destroy.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/image/destroy.PNG
--------------------------------------------------------------------------------
/WebContent/image/leave.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/image/leave.PNG
--------------------------------------------------------------------------------
/WebContent/image/lost.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/image/lost.PNG
--------------------------------------------------------------------------------
/WebContent/image/modifyInfo.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/image/modifyInfo.PNG
--------------------------------------------------------------------------------
/WebContent/image/qukuan.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/image/qukuan.PNG
--------------------------------------------------------------------------------
/WebContent/image/selectBalance.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/image/selectBalance.PNG
--------------------------------------------------------------------------------
/WebContent/image/singleInfo.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/image/singleInfo.PNG
--------------------------------------------------------------------------------
/WebContent/image/transferInfo.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/image/transferInfo.PNG
--------------------------------------------------------------------------------
/WebContent/image/zhuanzhang.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/image/zhuanzhang.PNG
--------------------------------------------------------------------------------
/WebContent/index.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 |
4 |
5 |
6 | 银行储蓄管理系统-首页
7 |
14 |
25 |
26 |
27 |
28 |
29 |
30 |
欢迎使用
31 |
指南者银行储蓄管理系统
32 |
33 |
如果没有自动跳转,请 点击这里
34 |
35 |
36 |
37 |
Copyright © 2017 指南者工作室
38 |
39 |
40 |
--------------------------------------------------------------------------------
/WebContent/inputMoney.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@ taglib prefix="s" uri="/struts-tags"%>
4 |
5 |
6 |
7 | 转账金额
8 |
26 |
27 |
28 |
51 |
52 |
--------------------------------------------------------------------------------
/WebContent/js/jquery.validate.min.js:
--------------------------------------------------------------------------------
1 | /**
2 | * jQuery Validation Plugin 1.9.0
3 | *
4 | * http://bassistance.de/jquery-plugins/jquery-plugin-validation/
5 | * http://docs.jquery.com/Plugins/Validation
6 | *
7 | * Copyright (c) 2006 - 2011 Jörn Zaefferer
8 | *
9 | * Dual licensed under the MIT and GPL licenses:
10 | * http://www.opensource.org/licenses/mit-license.php
11 | * http://www.gnu.org/licenses/gpl.html
12 | */
13 | (function(c){c.extend(c.fn,{validate:function(a){if(this.length){var b=c.data(this[0],"validator");if(b)return b;this.attr("novalidate","novalidate");b=new c.validator(a,this[0]);c.data(this[0],"validator",b);if(b.settings.onsubmit){a=this.find("input, button");a.filter(".cancel").click(function(){b.cancelSubmit=true});b.settings.submitHandler&&a.filter(":submit").click(function(){b.submitButton=this});this.submit(function(d){function e(){if(b.settings.submitHandler){if(b.submitButton)var f=c("").attr("name",
14 | b.submitButton.name).val(b.submitButton.value).appendTo(b.currentForm);b.settings.submitHandler.call(b,b.currentForm);b.submitButton&&f.remove();return false}return true}b.settings.debug&&d.preventDefault();if(b.cancelSubmit){b.cancelSubmit=false;return e()}if(b.form()){if(b.pendingRequest){b.formSubmitted=true;return false}return e()}else{b.focusInvalid();return false}})}return b}else a&&a.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing")},valid:function(){if(c(this[0]).is("form"))return this.validate().form();
15 | else{var a=true,b=c(this[0].form).validate();this.each(function(){a&=b.element(this)});return a}},removeAttrs:function(a){var b={},d=this;c.each(a.split(/\s/),function(e,f){b[f]=d.attr(f);d.removeAttr(f)});return b},rules:function(a,b){var d=this[0];if(a){var e=c.data(d.form,"validator").settings,f=e.rules,g=c.validator.staticRules(d);switch(a){case "add":c.extend(g,c.validator.normalizeRule(b));f[d.name]=g;if(b.messages)e.messages[d.name]=c.extend(e.messages[d.name],b.messages);break;case "remove":if(!b){delete f[d.name];
16 | return g}var h={};c.each(b.split(/\s/),function(j,i){h[i]=g[i];delete g[i]});return h}}d=c.validator.normalizeRules(c.extend({},c.validator.metadataRules(d),c.validator.classRules(d),c.validator.attributeRules(d),c.validator.staticRules(d)),d);if(d.required){e=d.required;delete d.required;d=c.extend({required:e},d)}return d}});c.extend(c.expr[":"],{blank:function(a){return!c.trim(""+a.value)},filled:function(a){return!!c.trim(""+a.value)},unchecked:function(a){return!a.checked}});c.validator=function(a,
17 | b){this.settings=c.extend(true,{},c.validator.defaults,a);this.currentForm=b;this.init()};c.validator.format=function(a,b){if(arguments.length==1)return function(){var d=c.makeArray(arguments);d.unshift(a);return c.validator.format.apply(this,d)};if(arguments.length>2&&b.constructor!=Array)b=c.makeArray(arguments).slice(1);if(b.constructor!=Array)b=[b];c.each(b,function(d,e){a=a.replace(RegExp("\\{"+d+"\\}","g"),e)});return a};c.extend(c.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",
18 | validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:c([]),errorLabelContainer:c([]),onsubmit:true,ignore:":hidden",ignoreTitle:false,onfocusin:function(a){this.lastActive=a;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass);this.addWrapper(this.errorsFor(a)).hide()}},onfocusout:function(a){if(!this.checkable(a)&&(a.name in this.submitted||!this.optional(a)))this.element(a)},
19 | onkeyup:function(a){if(a.name in this.submitted||a==this.lastElement)this.element(a)},onclick:function(a){if(a.name in this.submitted)this.element(a);else a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(a,b,d){a.type==="radio"?this.findByName(a.name).addClass(b).removeClass(d):c(a).addClass(b).removeClass(d)},unhighlight:function(a,b,d){a.type==="radio"?this.findByName(a.name).removeClass(b).addClass(d):c(a).removeClass(b).addClass(d)}},setDefaults:function(a){c.extend(c.validator.defaults,
20 | a)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:c.validator.format("Please enter no more than {0} characters."),
21 | minlength:c.validator.format("Please enter at least {0} characters."),rangelength:c.validator.format("Please enter a value between {0} and {1} characters long."),range:c.validator.format("Please enter a value between {0} and {1}."),max:c.validator.format("Please enter a value less than or equal to {0}."),min:c.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){function a(e){var f=c.data(this[0].form,"validator"),g="on"+e.type.replace(/^validate/,
22 | "");f.settings[g]&&f.settings[g].call(f,this[0],e)}this.labelContainer=c(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||c(this.currentForm);this.containers=c(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var b=this.groups={};c.each(this.settings.groups,function(e,f){c.each(f.split(/\s/),function(g,h){b[h]=e})});var d=
23 | this.settings.rules;c.each(d,function(e,f){d[e]=c.validator.normalizeRule(f)});c(this.currentForm).validateDelegate("[type='text'], [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ","focusin focusout keyup",a).validateDelegate("[type='radio'], [type='checkbox'], select, option","click",
24 | a);this.settings.invalidHandler&&c(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){this.checkForm();c.extend(this.submitted,this.errorMap);this.invalid=c.extend({},this.errorMap);this.valid()||c(this.currentForm).triggerHandler("invalid-form",[this]);this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(a){this.lastElement=
25 | a=this.validationTargetFor(this.clean(a));this.prepareElement(a);this.currentElements=c(a);var b=this.check(a);if(b)delete this.invalid[a.name];else this.invalid[a.name]=true;if(!this.numberOfInvalids())this.toHide=this.toHide.add(this.containers);this.showErrors();return b},showErrors:function(a){if(a){c.extend(this.errorMap,a);this.errorList=[];for(var b in a)this.errorList.push({message:a[b],element:this.findByName(b)[0]});this.successList=c.grep(this.successList,function(d){return!(d.name in a)})}this.settings.showErrors?
26 | this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){c.fn.resetForm&&c(this.currentForm).resetForm();this.submitted={};this.lastElement=null;this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b=0,d;for(d in a)b++;return b},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()==
27 | 0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{c(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(a){}},findLastActive:function(){var a=this.lastActive;return a&&c.grep(this.errorList,function(b){return b.element.name==a.name}).length==1&&a},elements:function(){var a=this,b={};return c(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&
28 | a.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in b||!a.objectLength(c(this).rules()))return false;return b[this.name]=true})},clean:function(a){return c(a)[0]},errors:function(){return c(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=c([]);this.toHide=c([]);this.currentElements=c([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},
29 | prepareElement:function(a){this.reset();this.toHide=this.errorsFor(a)},check:function(a){a=this.validationTargetFor(this.clean(a));var b=c(a).rules(),d=false,e;for(e in b){var f={method:e,parameters:b[e]};try{var g=c.validator.methods[e].call(this,a.value.replace(/\r/g,""),a,f.parameters);if(g=="dependency-mismatch")d=true;else{d=false;if(g=="pending"){this.toHide=this.toHide.not(this.errorsFor(a));return}if(!g){this.formatAndAdd(a,f);return false}}}catch(h){this.settings.debug&&window.console&&console.log("exception occured when checking element "+
30 | a.id+", check the '"+f.method+"' method",h);throw h;}}if(!d){this.objectLength(b)&&this.successList.push(a);return true}},customMetaMessage:function(a,b){if(c.metadata){var d=this.settings.meta?c(a).metadata()[this.settings.meta]:c(a).metadata();return d&&d.messages&&d.messages[b]}},customMessage:function(a,b){var d=this.settings.messages[a];return d&&(d.constructor==String?d:d[b])},findDefined:function(){for(var a=0;aWarning: No message defined for "+a.name+"")},formatAndAdd:function(a,b){var d=this.defaultMessage(a,b.method),e=/\$?\{(\d+)\}/g;if(typeof d=="function")d=d.call(this,b.parameters,a);else if(e.test(d))d=jQuery.format(d.replace(e,"{$1}"),b.parameters);this.errorList.push({message:d,element:a});this.errorMap[a.name]=d;this.submitted[a.name]=
32 | d},addWrapper:function(a){if(this.settings.wrapper)a=a.add(a.parent(this.settings.wrapper));return a},defaultShowErrors:function(){for(var a=0;this.errorList[a];a++){var b=this.errorList[a];this.settings.highlight&&this.settings.highlight.call(this,b.element,this.settings.errorClass,this.settings.validClass);this.showLabel(b.element,b.message)}if(this.errorList.length)this.toShow=this.toShow.add(this.containers);if(this.settings.success)for(a=0;this.successList[a];a++)this.showLabel(this.successList[a]);
33 | if(this.settings.unhighlight){a=0;for(b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass)}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return c(this.errorList).map(function(){return this.element})},showLabel:function(a,b){var d=this.errorsFor(a);if(d.length){d.removeClass(this.settings.validClass).addClass(this.settings.errorClass);
34 | d.attr("generated")&&d.html(b)}else{d=c("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(a),generated:true}).addClass(this.settings.errorClass).html(b||"");if(this.settings.wrapper)d=d.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();this.labelContainer.append(d).length||(this.settings.errorPlacement?this.settings.errorPlacement(d,c(a)):d.insertAfter(a))}if(!b&&this.settings.success){d.text("");typeof this.settings.success=="string"?d.addClass(this.settings.success):this.settings.success(d)}this.toShow=
35 | this.toShow.add(d)},errorsFor:function(a){var b=this.idOrName(a);return this.errors().filter(function(){return c(this).attr("for")==b})},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},validationTargetFor:function(a){if(this.checkable(a))a=this.findByName(a.name).not(this.settings.ignore)[0];return a},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(a){var b=this.currentForm;return c(document.getElementsByName(a)).map(function(d,
36 | e){return e.form==b&&e.name==a&&e||null})},getLength:function(a,b){switch(b.nodeName.toLowerCase()){case "select":return c("option:selected",b).length;case "input":if(this.checkable(b))return this.findByName(b.name).filter(":checked").length}return a.length},depend:function(a,b){return this.dependTypes[typeof a]?this.dependTypes[typeof a](a,b):true},dependTypes:{"boolean":function(a){return a},string:function(a,b){return!!c(a,b.form).length},"function":function(a,b){return a(b)}},optional:function(a){return!c.validator.methods.required.call(this,
37 | c.trim(a.value),a)&&"dependency-mismatch"},startRequest:function(a){if(!this.pending[a.name]){this.pendingRequest++;this.pending[a.name]=true}},stopRequest:function(a,b){this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[a.name];if(b&&this.pendingRequest==0&&this.formSubmitted&&this.form()){c(this.currentForm).submit();this.formSubmitted=false}else if(!b&&this.pendingRequest==0&&this.formSubmitted){c(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted=
38 | false}},previousValue:function(a){return c.data(a,"previousValue")||c.data(a,"previousValue",{old:null,valid:true,message:this.defaultMessage(a,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(a,b){a.constructor==String?this.classRuleSettings[a]=b:c.extend(this.classRuleSettings,
39 | a)},classRules:function(a){var b={};(a=c(a).attr("class"))&&c.each(a.split(" "),function(){this in c.validator.classRuleSettings&&c.extend(b,c.validator.classRuleSettings[this])});return b},attributeRules:function(a){var b={};a=c(a);for(var d in c.validator.methods){var e;if(e=d==="required"&&typeof c.fn.prop==="function"?a.prop(d):a.attr(d))b[d]=e;else if(a[0].getAttribute("type")===d)b[d]=true}b.maxlength&&/-1|2147483647|524288/.test(b.maxlength)&&delete b.maxlength;return b},metadataRules:function(a){if(!c.metadata)return{};
40 | var b=c.data(a.form,"validator").settings.meta;return b?c(a).metadata()[b]:c(a).metadata()},staticRules:function(a){var b={},d=c.data(a.form,"validator");if(d.settings.rules)b=c.validator.normalizeRule(d.settings.rules[a.name])||{};return b},normalizeRules:function(a,b){c.each(a,function(d,e){if(e===false)delete a[d];else if(e.param||e.depends){var f=true;switch(typeof e.depends){case "string":f=!!c(e.depends,b.form).length;break;case "function":f=e.depends.call(b,b)}if(f)a[d]=e.param!==undefined?
41 | e.param:true;else delete a[d]}});c.each(a,function(d,e){a[d]=c.isFunction(e)?e(b):e});c.each(["minlength","maxlength","min","max"],function(){if(a[this])a[this]=Number(a[this])});c.each(["rangelength","range"],function(){if(a[this])a[this]=[Number(a[this][0]),Number(a[this][1])]});if(c.validator.autoCreateRanges){if(a.min&&a.max){a.range=[a.min,a.max];delete a.min;delete a.max}if(a.minlength&&a.maxlength){a.rangelength=[a.minlength,a.maxlength];delete a.minlength;delete a.maxlength}}a.messages&&delete a.messages;
42 | return a},normalizeRule:function(a){if(typeof a=="string"){var b={};c.each(a.split(/\s/),function(){b[this]=true});a=b}return a},addMethod:function(a,b,d){c.validator.methods[a]=b;c.validator.messages[a]=d!=undefined?d:c.validator.messages[a];b.length<3&&c.validator.addClassRules(a,c.validator.normalizeRule(a))},methods:{required:function(a,b,d){if(!this.depend(d,b))return"dependency-mismatch";switch(b.nodeName.toLowerCase()){case "select":return(a=c(b).val())&&a.length>0;case "input":if(this.checkable(b))return this.getLength(a,
43 | b)>0;default:return c.trim(a).length>0}},remote:function(a,b,d){if(this.optional(b))return"dependency-mismatch";var e=this.previousValue(b);this.settings.messages[b.name]||(this.settings.messages[b.name]={});e.originalMessage=this.settings.messages[b.name].remote;this.settings.messages[b.name].remote=e.message;d=typeof d=="string"&&{url:d}||d;if(this.pending[b.name])return"pending";if(e.old===a)return e.valid;e.old=a;var f=this;this.startRequest(b);var g={};g[b.name]=a;c.ajax(c.extend(true,{url:d,
44 | mode:"abort",port:"validate"+b.name,dataType:"json",data:g,success:function(h){f.settings.messages[b.name].remote=e.originalMessage;var j=h===true;if(j){var i=f.formSubmitted;f.prepareElement(b);f.formSubmitted=i;f.successList.push(b);f.showErrors()}else{i={};h=h||f.defaultMessage(b,"remote");i[b.name]=e.message=c.isFunction(h)?h(a):h;f.showErrors(i)}e.valid=j;f.stopRequest(b,j)}},d));return"pending"},minlength:function(a,b,d){return this.optional(b)||this.getLength(c.trim(a),b)>=d},maxlength:function(a,
45 | b,d){return this.optional(b)||this.getLength(c.trim(a),b)<=d},rangelength:function(a,b,d){a=this.getLength(c.trim(a),b);return this.optional(b)||a>=d[0]&&a<=d[1]},min:function(a,b,d){return this.optional(b)||a>=d},max:function(a,b,d){return this.optional(b)||a<=d},range:function(a,b,d){return this.optional(b)||a>=d[0]&&a<=d[1]},email:function(a,b){return this.optional(b)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(a)},
46 | url:function(a,b){return this.optional(b)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(a)},
47 | date:function(a,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(a))},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},creditcard:function(a,b){if(this.optional(b))return"dependency-mismatch";if(/[^0-9 -]+/.test(a))return false;var d=0,e=0,f=false;a=a.replace(/\D/g,"");for(var g=a.length-1;g>=
48 | 0;g--){e=a.charAt(g);e=parseInt(e,10);if(f)if((e*=2)>9)e-=9;d+=e;f=!f}return d%10==0},accept:function(a,b,d){d=typeof d=="string"?d.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(b)||a.match(RegExp(".("+d+")$","i"))},equalTo:function(a,b,d){d=c(d).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){c(b).valid()});return a==d.val()}}});c.format=c.validator.format})(jQuery);
49 | (function(c){var a={};if(c.ajaxPrefilter)c.ajaxPrefilter(function(d,e,f){e=d.port;if(d.mode=="abort"){a[e]&&a[e].abort();a[e]=f}});else{var b=c.ajax;c.ajax=function(d){var e=("port"in d?d:c.ajaxSettings).port;if(("mode"in d?d:c.ajaxSettings).mode=="abort"){a[e]&&a[e].abort();return a[e]=b.apply(this,arguments)}return b.apply(this,arguments)}}})(jQuery);
50 | (function(c){!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.handle.call(this,e)}c.event.special[b]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,d,true)},handler:function(e){arguments[0]=c.event.fix(e);arguments[0].type=b;return c.event.handle.apply(this,arguments)}}});c.extend(c.fn,{validateDelegate:function(a,
51 | b,d){return this.bind(b,function(e){var f=c(e.target);if(f.is(a))return d.apply(f,arguments)})}})})(jQuery);
52 |
--------------------------------------------------------------------------------
/WebContent/left.jsp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/left.jsp
--------------------------------------------------------------------------------
/WebContent/login.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 |
4 |
5 | 银行储蓄管理系统-登录
6 |
24 |
25 |
55 |
56 |
57 |
58 |
59 |
60 |
银行储蓄管理系统
61 |
62 |
79 |
80 |
81 |
--------------------------------------------------------------------------------
/WebContent/loginError.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 |
4 |
5 | 登录错误
6 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
用户名或密码不正确
返回重新登录
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/WebContent/logout.jsp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/logout.jsp
--------------------------------------------------------------------------------
/WebContent/main.jsp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/main.jsp
--------------------------------------------------------------------------------
/WebContent/regist.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@ taglib prefix="s" uri="/struts-tags"%>
4 |
5 |
6 | 银行储蓄管理系统-注册
7 |
25 |
26 |
27 |
95 |
96 |
97 |
98 |
99 |
100 |
银行储蓄管理系统
101 |
102 |
103 |
138 |
139 |
140 |
--------------------------------------------------------------------------------
/WebContent/registSuccess.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@ taglib prefix="s" uri="/struts-tags"%>
4 |
5 |
6 |
7 | 银行储蓄管理系统
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | 注册成功,您的个人信息如下:
25 |
26 |
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 |
60 | 用户年龄
61 | |
62 |
63 |
64 | |
65 |
66 |
67 |
68 | 身份证
69 | |
70 |
71 |
72 | |
73 |
74 |
75 |
76 | 联系电话
77 | |
78 |
79 |
80 | |
81 |
82 |
83 |
84 | 城市
85 | |
86 |
87 |
88 | |
89 |
90 |
91 |
92 | 详细地址
93 | |
94 |
95 |
96 | |
97 |
98 |
99 | 请牢记并保管好您的帐号和密码!
100 |
返回登录页面
101 |
102 |
103 |
104 |
--------------------------------------------------------------------------------
/WebContent/right.jsp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/right.jsp
--------------------------------------------------------------------------------
/WebContent/save.jsp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/save.jsp
--------------------------------------------------------------------------------
/WebContent/selectError.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 |
4 |
5 |
6 | 系统
7 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
您的帐号已经挂失,不能再进行任何操作!
23 |
24 |
25 |
--------------------------------------------------------------------------------
/WebContent/top.jsp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/top.jsp
--------------------------------------------------------------------------------
/WebContent/trade.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 |
4 |
5 |
6 | 银行储蓄管理系统
7 |
10 |
11 | <%@include file="check.jsp"%>
12 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/WebContent/tradeInfo.jsp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/tradeInfo.jsp
--------------------------------------------------------------------------------
/WebContent/tradeSuccess.jsp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/tradeSuccess.jsp
--------------------------------------------------------------------------------
/WebContent/transfer.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 |
4 |
5 |
6 | 转账界面
7 |
25 |
26 | <%@include file="check.jsp"%>
27 |
28 |
42 |
43 |
--------------------------------------------------------------------------------
/WebContent/transferError.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 |
4 |
5 |
6 | 转账失败
7 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | 转账失败!请重新操作!
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/WebContent/transferSuccess.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@ taglib prefix="s" uri="/struts-tags"%>
4 |
5 |
6 |
7 | 转账成功
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 | 操作成功,您的帐户余额为元
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/WebContent/updateUser.jsp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/updateUser.jsp
--------------------------------------------------------------------------------
/WebContent/updateUserSuccess.jsp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/updateUserSuccess.jsp
--------------------------------------------------------------------------------
/WebContent/userInfo.jsp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/userInfo.jsp
--------------------------------------------------------------------------------
/WebContent/withdraw.jsp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/WebContent/withdraw.jsp
--------------------------------------------------------------------------------
/WebContent/withdrawError.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 |
4 |
5 |
6 | 帐号挂失
7 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
您的帐号已经挂失,不能再进行任何操作!
23 |
24 |
25 |
--------------------------------------------------------------------------------
/WebContent/withdrawSuccess.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 |
4 |
5 |
6 | 帐号挂失
7 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
24 |
25 |
--------------------------------------------------------------------------------
/WebContent/wrong.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 |
4 |
5 | 系统错误
6 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
23 |
24 |
--------------------------------------------------------------------------------
/bankmanagersystem.sql:
--------------------------------------------------------------------------------
1 | /*
2 | Navicat MySQL Data Transfer
3 |
4 | Source Server : Compasser_blog
5 | Source Server Version : 50519
6 | Source Host : localhost:3306
7 | Source Database : bankmanagersystem
8 |
9 | Target Server Type : MYSQL
10 | Target Server Version : 50519
11 | File Encoding : 65001
12 |
13 | Date: 2018-03-10 10:13:25
14 | */
15 |
16 | SET FOREIGN_KEY_CHECKS=0;
17 |
18 | -- ----------------------------
19 | -- Table structure for trader
20 | -- ----------------------------
21 | DROP TABLE IF EXISTS `trader`;
22 | CREATE TABLE `trader` (
23 | `id` int(11) NOT NULL AUTO_INCREMENT,
24 | `trade` varchar(50) DEFAULT NULL,
25 | `balance` int(11) DEFAULT NULL,
26 | `dataTime` varchar(50) DEFAULT NULL,
27 | `userNO` varchar(50) DEFAULT NULL,
28 | `money` int(255) DEFAULT NULL,
29 | PRIMARY KEY (`id`),
30 | KEY `index_uNO` (`userNO`)
31 | ) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8;
32 |
33 | -- ----------------------------
34 | -- Records of trader
35 | -- ----------------------------
36 | INSERT INTO `trader` VALUES ('36', '存款', '1000', '2017-12-29 16:13:27', '1514509301926', '1000');
37 |
38 | -- ----------------------------
39 | -- Table structure for userinfo
40 | -- ----------------------------
41 | DROP TABLE IF EXISTS `userinfo`;
42 | CREATE TABLE `userinfo` (
43 | `id` int(11) NOT NULL AUTO_INCREMENT,
44 | `userName` varchar(50) DEFAULT NULL,
45 | `userAge` int(11) DEFAULT NULL,
46 | `idCard` varchar(50) DEFAULT NULL,
47 | `tel` varchar(50) DEFAULT NULL,
48 | `city` varchar(50) DEFAULT NULL,
49 | `userAddress` varchar(100) DEFAULT NULL,
50 | `password` varchar(50) DEFAULT NULL,
51 | `userSex` varchar(50) DEFAULT NULL,
52 | `userNO` varchar(50) DEFAULT NULL,
53 | `balance` int(11) DEFAULT NULL,
54 | `userflag` int(11) DEFAULT NULL,
55 | PRIMARY KEY (`id`),
56 | KEY `index_userNO` (`userNO`),
57 | KEY `index_bal_uno` (`balance`,`userNO`)
58 | ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
59 |
60 | -- ----------------------------
61 | -- Records of userinfo
62 | -- ----------------------------
63 | INSERT INTO `userinfo` VALUES ('3', '孔潭活', '21', '441224199609140518', '13560468205', '广东广州', '天河区中山大道西293号', 'E10ADC3949BA59ABBE56E057F20F883E', '男', '1514509301926', '1000', '0');
64 |
65 | -- ----------------------------
66 | -- View structure for view_trader
67 | -- ----------------------------
68 | DROP VIEW IF EXISTS `view_trader`;
69 | CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` VIEW `view_trader` AS select * from trader ;
70 |
71 | -- ----------------------------
72 | -- View structure for view_userinfo
73 | -- ----------------------------
74 | DROP VIEW IF EXISTS `view_userinfo`;
75 | CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` VIEW `view_userinfo` AS select * from userinfo ;
76 |
--------------------------------------------------------------------------------
/build/classes/com/bank/dao/TradeDAO.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/build/classes/com/bank/dao/TradeDAO.class
--------------------------------------------------------------------------------
/build/classes/com/bank/dao/UserDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/build/classes/com/bank/dao/UserDao.class
--------------------------------------------------------------------------------
/build/classes/com/bank/dao/impl/TradeDAOImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/build/classes/com/bank/dao/impl/TradeDAOImpl.class
--------------------------------------------------------------------------------
/build/classes/com/bank/dao/impl/UserDAOImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/build/classes/com/bank/dao/impl/UserDAOImpl.class
--------------------------------------------------------------------------------
/build/classes/com/bank/domain/TradeInfo.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/build/classes/com/bank/domain/TradeInfo.class
--------------------------------------------------------------------------------
/build/classes/com/bank/domain/UserInfo.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/build/classes/com/bank/domain/UserInfo.class
--------------------------------------------------------------------------------
/build/classes/com/bank/service/TradeFacade.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/build/classes/com/bank/service/TradeFacade.class
--------------------------------------------------------------------------------
/build/classes/com/bank/service/UserFacade.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/build/classes/com/bank/service/UserFacade.class
--------------------------------------------------------------------------------
/build/classes/com/bank/service/impl/TradeFacadeImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/build/classes/com/bank/service/impl/TradeFacadeImpl.class
--------------------------------------------------------------------------------
/build/classes/com/bank/service/impl/UserFacadeImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/build/classes/com/bank/service/impl/UserFacadeImpl.class
--------------------------------------------------------------------------------
/build/classes/com/bank/utils/DBConnection.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/build/classes/com/bank/utils/DBConnection.class
--------------------------------------------------------------------------------
/build/classes/com/bank/utils/MD5.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/build/classes/com/bank/utils/MD5.class
--------------------------------------------------------------------------------
/build/classes/com/bank/web/action/LoginAction.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/build/classes/com/bank/web/action/LoginAction.class
--------------------------------------------------------------------------------
/build/classes/com/bank/web/action/TradeAction.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/build/classes/com/bank/web/action/TradeAction.class
--------------------------------------------------------------------------------
/build/classes/com/bank/web/action/UserAction.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/build/classes/com/bank/web/action/UserAction.class
--------------------------------------------------------------------------------
/build/classes/com/bank/web/action/interceptor/SessionInterceptor.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/build/classes/com/bank/web/action/interceptor/SessionInterceptor.class
--------------------------------------------------------------------------------
/build/classes/struts.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | /login.jsp
13 | /abilityError.jsp
14 | /Error.jsp
15 |
16 |
17 |
18 | /trade.jsp
19 | /loginError.jsp
20 | /haveWithdraw.jsp
21 |
22 |
23 | /registSuccess.jsp
24 |
25 |
26 | selectBalance
27 |
28 |
29 |
30 |
31 | /tradeSuccess.jsp
32 | /wrong.jsp
33 |
34 |
35 |
36 |
37 | selectBalance
38 | /fechError.jsp
39 |
40 |
41 |
42 |
43 | /tradeInfo.jsp
44 | /selectError.jsp
45 |
46 |
47 | /userInfo.jsp
48 |
49 |
50 |
51 |
52 | /updateUserSuccess.jsp
53 |
54 |
55 |
56 |
57 | /logout.jsp
58 |
59 |
60 | /deleteSuccess.jsp
61 | /deleteError.jsp
62 |
63 |
64 | /withdrawSuccess.jsp
65 | /withdrawError.jsp
66 |
67 |
68 | /inputMoney.jsp
69 |
70 |
71 |
72 |
73 | /transferSuccess.jsp
74 | /transferError.jsp
75 |
76 |
77 |
--------------------------------------------------------------------------------
/src/com/bank/dao/TradeDAO.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/src/com/bank/dao/TradeDAO.java
--------------------------------------------------------------------------------
/src/com/bank/dao/UserDao.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/src/com/bank/dao/UserDao.java
--------------------------------------------------------------------------------
/src/com/bank/dao/impl/TradeDAOImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/src/com/bank/dao/impl/TradeDAOImpl.java
--------------------------------------------------------------------------------
/src/com/bank/dao/impl/UserDAOImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/src/com/bank/dao/impl/UserDAOImpl.java
--------------------------------------------------------------------------------
/src/com/bank/domain/TradeInfo.java:
--------------------------------------------------------------------------------
1 | package com.bank.domain;
2 |
3 | public class TradeInfo {
4 |
5 | private String datatime;
6 |
7 | private String userNO;
8 |
9 | private int money;
10 |
11 | private int balance = 0;
12 |
13 | private int id;
14 |
15 | private String trade;
16 |
17 | public int getMoney() {
18 | return money;
19 | }
20 |
21 | public void setMoney(int money) {
22 | this.money = money;
23 | }
24 |
25 | public int getId() {
26 | return id;
27 | }
28 |
29 | public void setId(int id) {
30 | this.id = id;
31 | }
32 |
33 | public String getDatatime() {
34 | return datatime;
35 | }
36 |
37 | public void setDatatime(String datatime) {
38 | this.datatime = datatime;
39 | }
40 |
41 | public String getUserNO() {
42 | return userNO;
43 | }
44 |
45 | public void setUserNO(String userNO) {
46 | this.userNO = userNO;
47 | }
48 |
49 | public String getTrade() {
50 | return trade;
51 | }
52 |
53 | public void setTrade(String trade) {
54 | this.trade = trade;
55 | }
56 |
57 | public int getBalance() {
58 | return balance;
59 | }
60 |
61 | public void setBalance(int balance) {
62 | this.balance = balance;
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/src/com/bank/domain/UserInfo.java:
--------------------------------------------------------------------------------
1 | package com.bank.domain;
2 |
3 | public class UserInfo {
4 | private String userName;
5 |
6 | private int userAge;
7 |
8 | private String idCard;
9 |
10 | private String password;
11 |
12 | private int id;
13 |
14 | private String userSex;
15 |
16 | private String tel;
17 |
18 | private String address;
19 |
20 | private String city;
21 |
22 | private String userNO;
23 |
24 | private int balance = 0;
25 |
26 | private int userflag = 0;
27 |
28 | public int getBalance() {
29 | return balance;
30 | }
31 |
32 | public void setBalance(int balance) {
33 | this.balance = balance;
34 | }
35 |
36 | public String getUserNO() {
37 | return userNO;
38 | }
39 |
40 | public void setUserNO(String userNO) {
41 | this.userNO = userNO;
42 | }
43 |
44 | public String getUserName() {
45 | return userName;
46 | }
47 |
48 | public void setUserName(String userName) {
49 | this.userName = userName;
50 | }
51 |
52 | public int getUserAge() {
53 | return userAge;
54 | }
55 |
56 | public void setUserAge(int userAge) {
57 | this.userAge = userAge;
58 | }
59 |
60 | public String getPassword() {
61 | return password;
62 | }
63 |
64 | public void setPassword(String password) {
65 | this.password = password;
66 | }
67 |
68 | public int getId() {
69 | return id;
70 | }
71 |
72 | public void setId(int id) {
73 | this.id = id;
74 | }
75 |
76 | public String getUserSex() {
77 | return userSex;
78 | }
79 |
80 | public void setUserSex(String userSex) {
81 | this.userSex = userSex;
82 | }
83 |
84 | public String getTel() {
85 | return tel;
86 | }
87 |
88 | public void setTel(String tel) {
89 | this.tel = tel;
90 | }
91 |
92 | public String getAddress() {
93 | return address;
94 | }
95 |
96 | public void setAddress(String address) {
97 | this.address = address;
98 | }
99 |
100 | public String getCity() {
101 | return city;
102 | }
103 |
104 | public void setCity(String city) {
105 | this.city = city;
106 | }
107 |
108 | public String getIdCard() {
109 | return idCard;
110 | }
111 |
112 | public void setIdCard(String idCard) {
113 | this.idCard = idCard;
114 | }
115 |
116 | public int getUserflag() {
117 | return userflag;
118 | }
119 |
120 | public void setUserflag(int userflag) {
121 | this.userflag = userflag;
122 | }
123 |
124 | }
125 |
126 |
--------------------------------------------------------------------------------
/src/com/bank/service/TradeFacade.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/src/com/bank/service/TradeFacade.java
--------------------------------------------------------------------------------
/src/com/bank/service/UserFacade.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/src/com/bank/service/UserFacade.java
--------------------------------------------------------------------------------
/src/com/bank/service/impl/TradeFacadeImpl.java:
--------------------------------------------------------------------------------
1 | package com.bank.service.impl;
2 |
3 | import java.sql.SQLException;
4 | import java.util.List;
5 |
6 | import com.bank.domain.TradeInfo;
7 | import com.bank.dao.TradeDAO;
8 | import com.bank.dao.impl.TradeDAOImpl;
9 | import com.bank.service.TradeFacade;
10 |
11 |
12 | public class TradeFacadeImpl implements TradeFacade {
13 |
14 | private TradeDAO tradeDAO;
15 |
16 | public TradeFacadeImpl() {
17 | tradeDAO = new TradeDAOImpl();
18 | }
19 |
20 | public void fetchMoney(TradeInfo tradeInfo) throws SQLException {
21 | tradeDAO.fetchMoney(tradeInfo);
22 | }
23 |
24 | public void saveMoney(TradeInfo tradeInfo) throws SQLException {
25 | tradeDAO.saveMoney(tradeInfo);
26 | }
27 |
28 | public Integer selectBalance(String userNO) throws SQLException {
29 | return tradeDAO.selectBalance(userNO);
30 | }
31 |
32 | public List selectTradeInfo(String userNO) throws SQLException {
33 | return tradeDAO.selectTradeInfo(userNO);
34 | }
35 |
36 | public int findUserflag(String userNO) throws SQLException {
37 | return tradeDAO.findUserflag(userNO);
38 | }
39 |
40 | public boolean confirmTransfer(TradeInfo tradeInfo1, TradeInfo tradeInfo)
41 | throws SQLException {
42 | return tradeDAO.confirmTransfer(tradeInfo1,tradeInfo);
43 | }
44 |
45 | }
46 |
--------------------------------------------------------------------------------
/src/com/bank/service/impl/UserFacadeImpl.java:
--------------------------------------------------------------------------------
1 | package com.bank.service.impl;
2 |
3 | import java.sql.SQLException;
4 |
5 | import com.bank.domain.UserInfo;
6 | import com.bank.dao.UserDao;
7 | import com.bank.dao.impl.UserDAOImpl;
8 | import com.bank.service.UserFacade;
9 |
10 |
11 | public class UserFacadeImpl implements UserFacade {
12 |
13 | private UserDao userDAO;
14 |
15 | public UserFacadeImpl() {
16 | userDAO = new UserDAOImpl();
17 | }
18 |
19 | public void deleteUserInfo(String userNO) throws SQLException {
20 | userDAO.deleteUserInfo(userNO);
21 | }
22 |
23 | public int login(UserInfo user) throws SQLException {
24 | return userDAO.login(user);
25 | }
26 |
27 | public void registService(UserInfo user) throws SQLException {
28 | userDAO.registService(user);
29 | }
30 |
31 | public UserInfo selectUser(String userNO) throws SQLException {
32 | return userDAO.selectUser(userNO);
33 | }
34 |
35 | public void updateUserInfo(UserInfo user, String userNO)
36 | throws SQLException {
37 | userDAO.updateUserInfo(user, userNO);
38 | }
39 |
40 | public void withdrawUser(String userNO) {
41 | userDAO.withdrawUser(userNO);
42 |
43 | }
44 |
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/src/com/bank/utils/DBConnection.java:
--------------------------------------------------------------------------------
1 | package com.bank.utils;
2 |
3 | import java.sql.Connection;
4 | import java.sql.DriverManager;
5 | import java.sql.SQLException;
6 |
7 | public class DBConnection {
8 |
9 | private static String url = "jdbc:mysql://localhost:3306/bankmanagersystem";
10 |
11 | public static Connection getDBC() throws SQLException, Exception {
12 | Class.forName("com.mysql.jdbc.Driver");
13 | Connection conn = DriverManager.getConnection(url, "root", "root");
14 | return conn;
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/com/bank/utils/MD5.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/src/com/bank/utils/MD5.java
--------------------------------------------------------------------------------
/src/com/bank/web/action/LoginAction.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/src/com/bank/web/action/LoginAction.java
--------------------------------------------------------------------------------
/src/com/bank/web/action/TradeAction.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/src/com/bank/web/action/TradeAction.java
--------------------------------------------------------------------------------
/src/com/bank/web/action/UserAction.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/src/com/bank/web/action/UserAction.java
--------------------------------------------------------------------------------
/src/com/bank/web/action/interceptor/SessionInterceptor.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/compassblog/BankDepositManagerSystem/249b023c1482b0082075ebc3c2248334a6e57a78/src/com/bank/web/action/interceptor/SessionInterceptor.java
--------------------------------------------------------------------------------
/src/struts.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | /login.jsp
13 | /abilityError.jsp
14 | /Error.jsp
15 |
16 |
17 |
18 | /trade.jsp
19 | /loginError.jsp
20 | /haveWithdraw.jsp
21 |
22 |
23 | /registSuccess.jsp
24 |
25 |
26 | selectBalance
27 |
28 |
29 |
30 |
31 | /tradeSuccess.jsp
32 | /wrong.jsp
33 |
34 |
35 |
36 |
37 | selectBalance
38 | /fechError.jsp
39 |
40 |
41 |
42 |
43 | /tradeInfo.jsp
44 | /selectError.jsp
45 |
46 |
47 | /userInfo.jsp
48 |
49 |
50 |
51 |
52 | /updateUserSuccess.jsp
53 |
54 |
55 |
56 |
57 | /logout.jsp
58 |
59 |
60 | /deleteSuccess.jsp
61 | /deleteError.jsp
62 |
63 |
64 | /withdrawSuccess.jsp
65 | /withdrawError.jsp
66 |
67 |
68 | /inputMoney.jsp
69 |
70 |
71 |
72 |
73 | /transferSuccess.jsp
74 | /transferError.jsp
75 |
76 |
77 |
--------------------------------------------------------------------------------