This repository contains a simple Login and Registration module developed using JSP, Servlets, HTML, CSS, MySQL, and Java. It allows users to register, log in, and maintain session management for authentication purposes.
Login Page | Registration Page |
---|---|
![]() |
![]() |
Before you begin, ensure you have met the following requirements:
Follow these instructions to set up and run the project on your local machine.
git clone https://github.com/Venumadhavmule/Login_Module.git
cd login-module
CREATE DATABASE login_db;
USE login_db;
CREATE TABLE members (
id INT NOT NULL AUTO_INCREMENT,
firstname VARCHAR(50),
lastname VARCHAR(50),
email VARCHAR(100),
username VARCHAR(50) NOT NULL,
password VARCHAR(255) NOT NULL,
PRIMARY KEY (id)
);
Update the database connection details in the file: src/com/db/DBConnection.java
private static final String URL = "jdbc:mysql://localhost:3306/login_db";
private static final String USER = "your_mysql_username";
private static final String PASSWORD = "your_mysql_password";
webapps
folder.http://localhost:8080/login-module/
Register.html
) to create a new account.login.jsp
page.welcome.jsp
page.login-module/
│
├── src/
│ ├── com/
│ │ ├── controller/
│ │ │ ├── Login.java
│ │ │ ├── Logout.java
│ │ │ ├── Register.java
│ │ │
│ │ ├── dao/
│ │ │ ├── LoginDao.java
│ │ │ └── RegistDao.java
│ │ │
│ │ ├── model/
│ │ │ └── Member.java
│ │ │
│ │ └── db/
│ │ └── DBConnection.java
│ │
├── webapp/
│ ├── META-INF/
│ ├── WEB-INF/
│ │ └── web.xml
│ ├── Register.html
│ ├── Register.jsp
│ ├── login.jsp
│ ├── welcome.jsp
│ ├── aboutus.jsp
│ ├── videos.jsp
│ └── css/
│ ├── logStyle.css
│ └── regStyle.css
│
└── README.md