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 the founder of and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby.

You may also like:

Get Free Access of 450+ Scripts

Don't worry you'll not be spammed!

Featured eBook

WordPress Security Guide

Free Guide: Learn how to implement security guideline in your WordPress site...


Free WordPress Setup Service

Free WordPress Setup

Want to Setup WordPress Blog Setup? I will help you in the setup of your WordPress blog.

Click Here

Discount Coupons

Pincode Finder

pincode-finder tool

Online Pincode Finder

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