Skip to main content

Posts

Showing posts from April 3, 2016

JSP Login Logout Example

In this section we will discuss how to create a simple login and logout example. This section will describe you all the steps for creating a simple login and logout example. To create a simple login logout example in JSP we will use Eclipse IDE for compile and Tomcat 7 server for deploying the application. In this application we will fetch the record from database and then matched them to the input value that are given through the user interface i.e. login form. Example I am giving here a simple login logout example. We will create this example using JSP. In this example we will take input through a form and we will validate the input record from the record saved into the database table. For this at first we will create a database table and then we will insert some dummy values. Then we will create the JSP pages for different purposes. At first we will create  home.jsp  page where we will design an interface for the user to input and submit their records then we will...

Login and Registration Example in JSP with Session

Those who want to start with jsp and MySQL, this is an excellent example for themselves. Here you can learn how to insert data to MySQL using JSP. Also you can learn about session handling in jsp. 1 2 3 4 5 6 7 8 9 10 CREATE TABLE `members` (    `id` int (10) unsigned NOT NULL auto_increment,    `first_name` varchar (45) NOT NULL ,    `last_name` varchar (45) NOT NULL ,    `email` varchar (45) NOT NULL ,    `uname` varchar (45) NOT NULL ,    `pass` varchar (45) NOT NULL ,    `regdate` date NOT NULL ,    PRIMARY KEY   (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; index.jsp 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html...