This is a simple Java-based web application for managing payment records using JDBC (Java Database Connectivity). It provides full CRUD (Create, Read, Update, Delete) operations for payment data through a user-friendly interface.
- Add new payment entries
- View all payment records
- Update existing payments
- Delete unwanted payment records
- Uses JSP for the frontend
- JDBC with MySQL for backend integration
- Java (JSP/Servlet)
- JDBC
- MySQL
- Apache Tomcat
- HTML/CSS (WebContent)
- Eclipse IDE (project structure)
JAVA-jdbc-Payment-CRUD-main/
├── src/ # Java servlet files
├── WebContent/ # JSP pages, CSS, JavaScript
│ └── index.jsp # Home page
│ └── payments.jsp # Payment display and operations
├── build/ # Compiled classes
├── .settings/ # Eclipse configuration
└── README.md
- Java Development Kit (JDK)
- Apache Tomcat 8.x or later
- MySQL Server
- Eclipse IDE (recommended)
- Create a MySQL database:
CREATE DATABASE paymentdb;- Create the
paymentstable:
CREATE TABLE payments (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(100) NOT NULL,
amount DECIMAL(10, 2) NOT NULL,
date DATE NOT NULL
);- Update your DB credentials in the Java connection file (usually in a class like
DBConnection.java):
String jdbcURL = "jdbc:mysql://localhost:3306/paymentdb";
String dbUser = "root";
String dbPassword = "your_password";- Import the project into Eclipse as a Dynamic Web Project
- Add Apache Tomcat server runtime
- Deploy the project to the server
- Start the server and visit:
http://localhost:8080/JAVA-jdbc-Payment-CRUD-main/
This project is open-source and free to use for educational purposes.
Developed with ❤️ using Java, JSP, and JDBC