Create login page using jsp

| Last Updated: | In: JSP, Mysql

In this article you will learn how you may design a simple Login form using JSP. We use the session for storing the users information.

Login.jsp page take input from user and submitted to server to further processing. Database has a MYSQL table name users. Users table is having number of fields like username and password which are using in login process.

Create a table in the database and name it as users

First select mysql database and create users tables. copy paste below query in sql tabs of phpmyadmin.

Add record in table

index.html page


source code

Login.jsp page

Home.jsp page

Logout Page logout.jsp

If you want to logout for current session. You can use the logout page where the session value for current username is removed.

Do you like & share this article with your friends, and follow us on Facebook and Twitter for more cool WordPress tutorials.

Tags: , , , , ,

About: Prem Tiwari

Prem Tiwari is founder of and Software developer from New Delhi (India). Follow Prem's development codes on facebook, and make sure you check out for the latest in web development related Tips with the complete code.

You may also like:

Follow us!

Get Free Access of 350+ Scripts

Don't worry you'll not be spammed!

Featured eBook

WordPress Security Guide

Learn how to implement security guideline in your WordPress site...


Pincode Finder

pincode-finder tool

Online Pincode Finder

Best tool to locate post Office address and pincodes of all india...