CampusConnect
š Student Management System ā Full Stack Java Web App (JSP + Servlet + JDBC + MySQL) | SPPU Third Year Project | Live on Railway
Install / Use
/learn @shivrajcodez/CampusConnectREADME
š Student Management System
A full-stack web application built with Core Java, JDBC, Servlet, JSP and MySQL.
Developed as part of the SPPU Third Year PAT (Project Based Assessment) internship project.
š Live Demo: campusconnect-production-45d8.up.railway.app
š Demo Credentials
| Role | Username | Password |
|---------|---------------|--------------|
| Admin | admin | admin123 |
| Student | rahul.sharma | student123 |
| Student | priya.patil | student123 |
⨠Features
Admin Panel
- š Secure login with session management
- š Dashboard with total students and courses count
- šØāš Add, Edit, Delete, View Students (full CRUD)
- š Search students by name, email, enrollment number, department
- š Course Management (Add, Edit, Delete courses)
- š Marks Entry with automatic grade calculation
- š Attendance Tracking (Present / Absent / Late)
- šØļø Print student records
Student Portal
- š Secure login with personal session
- š Personal dashboard with profile info
- š View enrolled courses
- š View personal marks and grades
- š View attendance with percentage
- ā ļø Warning if attendance below 75%
Validation
- ā Indian mobile number validation (10 digits, starts with 6-9)
- ā Email format validation (frontend + backend)
- ā Duplicate email and phone detection
- ā Marks range validation (0-50 each)
- ā Bootstrap form validation with live feedback
š ļø Tech Stack
| Layer | Technology | |------------|-----------------------------------| | Frontend | JSP, HTML5, CSS3, Bootstrap 5 | | Backend | Core Java, Servlets | | Database | MySQL, JDBC | | Server | Apache Tomcat 9 | | Hosting | Railway.app (Docker) | | IDE | Eclipse IDE for Enterprise Java |
šļø Database Schema
users ā user_id, username, password, role
students ā student_id, name, email, phone, enrollment_number, department, year
courses ā course_id, course_name, course_code, department, credits, semester
enrollments ā enrollment_id, student_id, course_id (junction table)
marks ā mark_id, student_id, course_id, internal, external, total, grade
attendance ā attendance_id, student_id, course_id, date, status
š Project Structure
StudentManagementSystem/
āāā src/
ā āāā com/sms/
ā āāā model/ ā Student.java, User.java, Course.java, Marks.java, Attendance.java
ā āāā dao/ ā StudentDAO.java, UserDAO.java, CourseDAO.java, MarksDAO.java, AttendanceDAO.java
ā āāā servlet/ ā LoginServlet, StudentServlet, CourseServlet, MarksServlet, AttendanceServlet
ā āāā util/ ā DBConnection.java, ValidationUtil.java
āāā WebContent/
ā āāā jsp/ ā login, dashboard, addStudent, viewStudents, editStudent,
ā ā manageCourses, manageMarks, manageAttendance,
ā ā studentDashboard, myMarks, myAttendance, error
ā āāā WEB-INF/
ā āāā web.xml
ā āāā lib/ ā mysql-connector-j.jar
āāā Dockerfile
š Run Locally
Prerequisites
- Java JDK 11+
- Apache Tomcat 9
- MySQL 5.7+
- Eclipse IDE for Enterprise Java
Steps
1. Clone the repository
git clone https://github.com/shivrajcodez/CampusConnect.git
2. Import in Eclipse
- File ā Import ā Existing Projects into Workspace
- Select the cloned folder
3. Setup MySQL
- Create database:
student_management_db - Run the SQL script from
database.sql
4. Update DB credentials
- Open
src/com/sms/util/DBConnection.java - Update
USERNAMEandPASSWORDwith your MySQL credentials
5. Add MySQL JAR
- Download
mysql-connector-j-8.x.jar - Add to
WebContent/WEB-INF/lib/ - Add to Build Path
6. Run on Server
- Right-click project ā Run As ā Run on Server ā Tomcat 9
7. Open browser
http://localhost:8080/StudentManagementSystem/
š³ Deploy with Docker
FROM tomcat:9.0-jdk17-temurin
RUN rm -rf /usr/local/tomcat/webapps/*
COPY StudentManagementSystem.war /usr/local/tomcat/webapps/ROOT.war
EXPOSE 8080
CMD ["catalina.sh", "run"]
š Grade System
| Total Marks | Grade | |-------------|-------| | 90 - 100 | A+ | | 80 - 89 | A | | 70 - 79 | B | | 60 - 69 | C | | 50 - 59 | D | | Below 50 | F |
Internal marks: 0-50 | External marks: 0-50 | Total: 0-100
šļø Architecture
This project follows the MVC (Model-View-Controller) pattern:
- Model ā Java classes in
com.sms.model(Student, Course, Marks, etc.) - View ā JSP pages in
WebContent/jsp/ - Controller ā Servlets in
com.sms.servlet - DAO Layer ā Database operations in
com.sms.dao
šØāš» Developer
Shivraj ā Third Year Computer Engineering
SPPU Internship Project ā Java Full Stack
š License
This project is open source and available under the MIT License.
Related Skills
feishu-drive
350.8k|
things-mac
350.8kManage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database)
clawhub
350.8kUse the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com
postkit
PostgreSQL-native identity, configuration, metering, and job queues. SQL functions that work with any language or driver
