A full CRUD-based Student Management System developed using Java JSP, Servlet, JDBC, and MySQL following the MVC Architecture.
This project allows users to:
- Add Students
- View Student List
- Update Student Details
- Delete Students
- Truncate Entire Table
- Java
- JSP (Java Server Pages)
- Servlet
- JDBC
- MySQL
- Apache Tomcat
- HTML5
- CSS3
student-management-system/
β
βββ src/main/java/
β β
β βββ controller/
β β βββ StudentController.java
β β
β βββ dao/
β β βββ StudentDAO.java
β β
β βββ model/
β βββ Student.java
β
βββ src/main/webapp/
β β
β βββ index.jsp
β βββ list.jsp
β βββ edit.jsp
βUsers can add new student records.
Displays all students from database in a responsive table.
Update existing student details.
Delete individual student records.
Delete all student records with confirmation.
Project follows proper MVC design pattern:
- Model
- View
- Controller
curdappCREATE TABLE students (
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(100),
age INT,
course VARCHAR(100)
);Inside StudentDAO.java
private String jdbcURL = "jdbc:mysql://localhost:3306/curdapp";
private String jdbcUsername = "root";
private String jdbcPassword = "";Update these values according to your MySQL setup.
git clone https://github.com/Nikit-370/student-management-system.gitImport project into:
- Eclipse
- IntelliJ IDEA
- STS
Add Apache Tomcat server in IDE.
Recommended:
- Tomcat 10+
Create MySQL database:
CREATE DATABASE curdapp;Then create students table.
Add MySQL JDBC dependency.
If using Maven:
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<version>8.0.33</version>
</dependency>Run project on Tomcat server.
Open:
http://localhost:8080/JDBCWithServletJSP/studentsStudentController.java
Handles:
- HTTP requests
- Routing
- CRUD operations
StudentDAO.java
Handles:
- Database connection
- SQL queries
- CRUD logic
Student.java
Represents Student entity.
Contains:
- Fields
- Constructors
- Getters & Setters
JSP Files:
index.jsplist.jspedit.jsp
Used for frontend UI.
| Operation | Description |
|---|---|
| Create | Add Student |
| Read | View Students |
| Update | Edit Student |
| Delete | Remove Student |
- Authentication/Login
- Search Feature
- Pagination
- Bootstrap Integration
- REST API
- Validation
- Session Management
- Deployment Support
- MCA Student
- Java & DSA Learner
- Cloud & Software Enthusiast
GitHub: Nikit-370
This project is open-source and free to use.