Online Medicine Donation System in Java using JSP and Servlet is a web-based application developed to manage the donation of unused medicines to people in need, particularly through NGOs. The system provides a platform where users can donate eligible medicines, NGOs can request and collect medicines, and Admin can manage registrations, donations, and the overall donation process.
This project is suitable for final-year IT and Computer Science students for their college minor or major projects. The complete Online Medicine Donation System is available with free source code and can be used for learning and academic purposes.
Online Medicine Donation System Overview
Online Medicine Donation System is a multi-role Java web application with three main roles: Admin, User, and NGO. The Admin has primary control over the system and manages users, NGOs, medicine donations, registrations, and donation records.
Admin can manage User and NGO registrations, review medicine donation requests, verify submitted medicine details, and accept or reject donations according to the system’s defined criteria. Admin can also maintain records of donated medicines and registered NGOs.
Users can register on the portal and log in using their credentials. After logging in, users can search for NGOs, view NGO information, submit medicine donation requests, manage their profiles, and track their donations.
NGOs can register on the system and provide information about the medicines they require. After registration, NGOs can view donations made by users, collect donated medicines, and track donation-related information.
The complete project is developed using JSP and Servlet. HTML, CSS, JavaScript, and Bootstrap are used for the front end. JDBC is used for database connectivity, while MySQL is used as the database. The project follows the MVC (Model View Controller) design pattern.
Free Source Code of Online Medicine Donation System
The complete Online Medicine Donation System project source code is available for free. Students can download the source code and use it to understand the development of a Java web application using JSP, Servlet, JDBC, MySQL, and MVC architecture.
Free Project Source Code:
https://github.com/jcodebun/Online-Medicine-Donation-System.git
Online Medicine Donation System Abstract
Access to essential medicines can be a challenge for many people, particularly those who cannot easily afford required medicines and medical supplies. Donating unused and eligible medicines can be one way to help connect available medicines with people and organizations that need them.
Codebun has developed this Online Medicine Donation System in Java with three main roles: Admin, User, and NGO. Admin is the primary user who controls the overall system and manages users, NGOs, registrations, donations, and donation records.
Admin can add, update, and manage system information, view and manage User and NGO registrations, and review medicine donation requests. Admin can check the details submitted with a donation request and accept or reject the donation according to the defined criteria, such as medicine condition, expiry information, packaging condition, and other applicable requirements.
After a donation request is accepted, the system can provide the User with a shipping label or shipping information for sending the medicine to the selected NGO.
NGOs can register on the portal and provide information about the medicines they require. Registered NGOs can view available donations, collect donated medicines, and track donation-related information.
Users can register on the system and search for NGOs. They can select one or more NGOs and submit medicine donation requests by providing the required medicine details. Users can also upload medicine images and provide other information required for the donation request.
The major objectives of the Online Medicine Donation System are:
- To provide a simple and user-friendly medicine donation platform.
- To develop a secure and reliable Online Medicine Donation System.
- To maintain records of users, NGOs, medicine donations, and donation history.
- To allow users to submit medicine donation requests online.
- To help NGOs manage medicine requirements and donated medicines.
- To provide Admin with a centralized platform for reviewing and managing donations.
- To maintain donation and shipment-related records.
Project Demo
Modules in Online Medicine Donation System
Admin Module
The Admin Module provides control over the overall Online Medicine Donation System. Admin can manage users, NGOs, registrations, donations, and donation records.
Admin can:
- Log in and log out of the system.
- View, confirm, and cancel User registrations.
- View, confirm, and cancel NGO registrations.
- Manage registered users and NGOs.
- View and manage medicine donation requests.
- Accept or reject donation requests.
- Review medicine details submitted by users.
- Check medicine condition and other donation criteria.
- Provide shipping information or labels after accepting donations.
- Track donation-related courier information.
- Maintain donation records.
- Manage the Admin profile.
- Change the password.
NGO Module
The NGO Module manages operations related to registered NGOs.
NGOs can:
- Register on the system.
- Log in and log out.
- Manage their profile.
- Mention required medicines.
- View medicine donations made by users.
- Collect donated medicines.
- Track donation-related information.
- Manage their account details.
- Change the password.
User Module
The User Module manages all operations related to medicine donors.
Users can:
- Register on the portal.
- Log in and log out.
- Manage their profile.
- Search for NGOs.
- View NGO information.
- Select NGOs for donations.
- Submit medicine donation requests.
- Provide medicine details.
- Upload medicine images.
- Track donation requests.
- Change the password.
Donate Module
The Donate Module allows users to submit medicine donation requests.
Users can select one or more NGOs from the available list and provide the required details about the medicines they want to donate. Users can also upload images of the medicines as part of the donation request.
After the donation request is accepted by Admin, users can pack the medicines according to the applicable requirements and use the provided shipping information or label to send them to the selected NGO.
Donation Records Module
The Donation Records Module is used to maintain information about medicine donations made through the system.
Admin can manage and track donation records, while relevant users and NGOs can view information related to their donation activities.
User Roles
Three types of users can interact with the Online Medicine Donation System:
- Admin
- User
- NGO
Admin
The Admin can:
- Log in and log out of the system.
- Manage medicine donation requests.
- Review and manage donation requests.
- Track donation-related courier information.
- Manage registered NGOs.
- Manage registered users.
- Maintain donation records.
- Manage the Admin profile.
- Change the password.
User
The User can:
- Register on the system.
- Log in and log out.
- Manage their profile.
- Search for NGOs.
- View NGO information.
- Submit medicine donation requests.
- Donate medicines through the system.
- Track donation-related information.
- Change the password.
NGO
The NGO can:
- Register on the system.
- Log in and log out.
- Manage their profile.
- Mention medicine requirements.
- View donations made by users.
- Collect donated medicines.
- Track donations.
- Change the password.
Flow Diagram of Online Medicine Donation System
Level 0 DFD

Level 1 DFD

Level 2 DFD

Additional Level 2 DFD


Tools and Technologies Used
Technology/Domain: Java
Front-End: JSP, HTML, CSS, JavaScript, Bootstrap
Server-side: Servlet
Database: MySQL
Database Connectivity: JDBC
Server: Apache Tomcat 8.5
Design Pattern: MVC
Java Web Project Configuration
To configure and run this Java web project on your local computer, follow the Java Web Project Configuration tutorial:
https://codebun.com/java-web-project-configuration/
Get Free Source Code
The complete Online Medicine Donation System source code is available for free. Students can download the project source code and use it for learning, academic purposes, and college project demonstrations.
GitHub Source Code:
https://github.com/jcodebun/Online-Medicine-Donation-System.git
Conclusion
Online Medicine Donation System is a Java web application designed to simplify the process of donating eligible unused medicines through NGOs. It provides separate Admin, User, and NGO modules for managing registrations, medicine requirements, donation requests, donation records, and shipment-related information.
The project is developed using Java, JSP, Servlet, JDBC, MySQL, HTML, CSS, JavaScript, and Bootstrap. It is suitable for final-year IT and Computer Science students looking for a Java web project with free source code.