You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Library Management System is a web-based application developed using Java (JSP, Servlets), Tomcat Server, MySQL Database, HTML, and CSS. It facilitates managing library operations such as book management, user authentication, and book borrowing.
Features
Admin Features
Add, update, search, and delete book records.
Issue and return books.
Manage user records.
Student Features
Search for books by title, author, or category.
View available books.
Technology Stack
Frontend: HTML, CSS, JSP
Backend: Java Servlets
Database: MySQL
Server: Apache Tomcat
Database Setup
MySQL Queries
CREATEDATABASELibraryDB;
USE LibraryDB;
CREATETABLEusers (
id INT AUTO_INCREMENT PRIMARY KEY,
username VARCHAR(50) NOT NULL,
email VARCHAR(100) NOT NULL UNIQUE,
password VARCHAR(255) NOT NULL
);
CREATETABLEbooks (
id INT AUTO_INCREMENT PRIMARY KEY,
title VARCHAR(255) NOT NULL,
author VARCHAR(100),
category VARCHAR(50),
is_available BOOLEAN DEFAULT TRUE
);
CREATETABLEborrowed_books (
id INT AUTO_INCREMENT PRIMARY KEY,
user_id INT,
book_id INT,
borrow_date DATE,
return_date DATE,
FOREIGN KEY (user_id) REFERENCES users(id),
FOREIGN KEY (book_id) REFERENCES books(id)
);
Creating an Library Management System is a web-based application built using Java (JSP, Servlets), Tomcat Server, MySQL Database, HTML, CSS, and JSP. It provides an efficient platform for managing library operations, including book management, student access, and administrative tasks.