Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Authentication-Based Login & Registration System

A Java Servlet + JSP web application for secure user registration and authentication with full input validation and session handling.


πŸš€ Features

πŸ“„ Registration Form
  • βœ… Username – Only alphabetic characters allowed
  • βœ… UserID – Must be unique in the database
  • βœ… Email – Validated using Regex
  • βœ… Password & Confirm Password – Must match
  • βœ… Age – Between 18 and 80
πŸ” Login Form
  • πŸ” Credentials verified against database records
  • ❌ Errors shown for invalid input using session messages
πŸ›  Backend Features
  • πŸ—ƒοΈ DAO Layer for DB interaction
  • πŸ” Session management with HttpSession
  • 🚫 Input validation and duplicate checking
  • πŸ“‘ JDBC with MySQL

πŸ›  Tech Stack

Language / Tech Purpose
Java (Servlets & JSP) Backend logic
HTML, CSS, Bootstrap 5 Frontend UI
JDBC Database connectivity
MySQL Persistent storage
Apache Tomcat Servlet container

πŸ“ Project Structure

index.jsp β†’ Registration Page
login.jsp β†’ Login Page
register.java β†’ Servlet to handle register/login logic
UserDetails.java β†’ DAO for DB operations
UserData.java β†’ POJO (Entity class)
style.css β†’ Custom CSS styles

⚑ Application Flow

πŸ‘€ User registers with form input.

πŸ›‘οΈ Fields are validated (server-side).

πŸ—ƒοΈ If valid β†’ data saved in MySQL.

🚫 If UserID already exists β†’ error via session message.

πŸ” On success β†’ redirected to Login page.

πŸ”“ Login credentials are verified against DB.

βœ… If valid β†’ redirected to Home page with:

πŸ“Έ Screenshots Image

About

A Java Servlet & JSP based authentication system with user registration, login, and full input validation (Name, Email, Age, Password, UserID uniqueness) using JDBC and Postgres SQL.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages