How mayankdevops/onlinebanking works
Purpose and deployment model
This is a legacy Java online-banking demo packaged as a Maven web application. It provides separate browser-facing workflows for administrators, employees, and bank clients: authentication, account/client viewing, employee management, client creation, transaction entry, password changes, and bank-detail maintenance. Build/dependency entry point: pom.xml; servlet deployment descriptor: src/main/webapp/WEB-INF/web.xml.
Web request routing
Apache Struts is the application control-plane boundary. Action mappings in src/main/resources/struts.xml route submitted JSP forms to Java action classes, then select result views. Browser entry pages and role portals include src/main/webapp/index.jsp, src/main/webapp/login-portal.jsp, and role-specific directories under src/main/webapp/admin, src/main/webapp/emp, and src/main/webapp/user.
Role-specific authentication and session flows
Distinct action/form pairs implement login for admin, employee, and client roles:
• src/main/java/actionClass/Admin_Login_Action.java
• src/main/java/actionClass/Emp_Login_Action.java
• src/main/java/actionClass/Client_Login_Action.java
Their corresponding form objects in src/main/java/actionForm carry request parameters into Struts actions. Successful authentication directs users to role-specific JSP areas such as src/main/webapp/admin/welcome.jsp, src/main/webapp/emp/welcome.jsp, and src/main/webapp/user/welcome.jsp.
Administrative operations
Administrators manage employees, change client/employee passwords, and maintain bank details. The action layer is represented by src/main/java/actionClass/Admin_AddEmp_Action.java, src/main/java/actionClass/Admin_ClientChPW_Action.java, and src/main/java/actionClass/Bank_Detail_Action.java; persistence implementations are in src/main/java/daoImpl/Admin_AddEmp_DaoImpl.java, src/main/java/daoImpl/Admin_ClientChPW_DaoImpl.java, and src/main/java/daoImpl/Bank_Detail_DaoImpl.java. Administrative views are under src/main/webapp/admin.
Employee servicing and transaction entry
Employees create client records and add banking transactions through:
• src/main/java/actionClass/Emp_AddClient_Action.java
• src/main/java/actionClass/Emp_AddTrans_Action.java
• src/main/java/daoImpl/Emp_AddClient_DaoImpl.java
• src/main/java/daoImpl/Emp_AddTrans_DaoImpl.java
The employee UI separates client and transaction workflows in src/main/webapp/emp/addclient.jsp, src/main/webapp/emp/addtrans.jsp, and related edit/view JSPs. Actions receive form state, invoke a DAO implementation, then return a Struts outcome for rendering.
Client account viewing
Client self-service is centered on login and account/client-detail retrieval. src/main/java/actionClass/Client_View_Action.java delegates data access to src/main/java/daoImpl/Client_View_DaoImpl.java, rendering through pages such as src/main/webapp/user/view.jsp. Public informational pages (src/main/webapp/forex.jsp, src/main/webapp/interest-rate.jsp) are static JSP-facing content rather than part of the transactional action pipeline.
Persistence, database, and infrastructure boundaries
Hibernate is the persistence mechanism: src/main/java/util/HibernateUtil.java centralizes Hibernate setup, and src/main/resources/hibernate.cfg.xml defines its database integration. DAO implementations are the main boundary between action/business workflow code and relational persistence; src/main/java/dao/IBank_Detail_DAO.java and src/main/java/dao/ContactDao.java are available DAO contracts. The database baseline is supplied as database/Dump20130602.sql. Logging is configured in src/main/resources/log4j.properties; a Jenkins pipeline definition appears in jenkinsfile.txt.
Main entry points: struts.xml Struts Action Router · HibernateUtil.java Hibernate Utility · Admin_AddEmp_DaoImpl.java Admin DAOs · welcome.jsp Role Portals
Components 21
Web & Routing
- Browser JSPs · Public entry pages and role-specific JSP workflows.
src/main/webapp/index.jsp - Role Portals · Administrator, employee, and client landing areas.
src/main/webapp/admin/welcome.jsp - Servlet Deployment
src/main/webapp/WEB-INF/web.xml - Struts Action Router · Maps submitted forms to actions and result views.
src/main/resources/struts.xml - Action Forms · Carry submitted request parameters into Struts actions.
src/main/java/actionForm
Role Workflows
- Admin Login
src/main/java/actionClass/Admin_Login_Action.java - Employee Login
src/main/java/actionClass/Emp_Login_Action.java - Client Login
src/main/java/actionClass/Client_Login_Action.java - Admin Operations · Employee management, password changes, and bank-detail maintenance.
src/main/java/actionClass/Admin_AddEmp_Action.java - Employee Servicing · Creates clients and enters banking transactions.
src/main/java/actionClass/Emp_AddClient_Action.java - Client Account View · Retrieves client and account details.
src/main/java/actionClass/Client_View_Action.java
Persistence
- Admin DAOs
src/main/java/daoImpl/Admin_AddEmp_DaoImpl.java - Employee DAOs
src/main/java/daoImpl/Emp_AddClient_DaoImpl.java - Client View DAO
src/main/java/daoImpl/Client_View_DaoImpl.java - DAO Contracts
src/main/java/dao/IBank_Detail_DAO.java - Hibernate Utility · Centralizes Hibernate session setup.
src/main/java/util/HibernateUtil.java - Hibernate Configuration
src/main/resources/hibernate.cfg.xml - Bank Database · Baseline schema and data dump.
database/Dump20130602.sql
Build & Delivery
- Maven Web Build
pom.xml - Jenkins Pipeline
jenkinsfile.txt - Log4j Configuration
src/main/resources/log4j.properties
Connections 23
- Browser JSPs → Struts Action Router: submits forms
- Servlet Deployment → Struts Action Router: deploys
- Struts Action Router → Action Forms: populates
- Struts Action Router → Admin Login: routes admin login
- Struts Action Router → Employee Login: routes employee login
- Struts Action Router → Client Login: routes client login
- Struts Action Router → Admin Operations: routes admin work
- Struts Action Router → Employee Servicing: routes employee work
- Struts Action Router → Client Account View: routes account view
- Admin Login → Role Portals: admin result
- Employee Login → Role Portals: employee result
- Client Login → Role Portals: client result
- Admin Operations → Admin DAOs: persists through
- Employee Servicing → Employee DAOs: persists through
- Client Account View → Client View DAO: retrieves through
- Admin DAOs → DAO Contracts: implements contracts
- Admin DAOs → Hibernate Utility: uses
- Employee DAOs → Hibernate Utility: uses
- Client View DAO → Hibernate Utility: uses
- Hibernate Utility → Hibernate Configuration: loads
- Hibernate Utility → Bank Database: maps to
- Jenkins Pipeline → Maven Web Build: builds
- Maven Web Build → Servlet Deployment: packages web app