First Create table in database create table studentinfo ( name varchar(20), branch varchar(20), year varchar(4), email varchar(20) ) insert into studentinfo values('Satyam','CSE','2013','satyam@gmail.com') insert into studentinfo values('Anand','CSE','2013','anand@gmail.com') Now create home.jsp page <%@page contentType="text/html" pageEncoding="UTF-8"%> <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" > < html > < head > < title > Jsp Page </ title > < script > 1: 2: function showuser(str) 3: { 4: var xreq; 5: if (str== "" ) 6: { 7: document.getElementById( "showtext" ).innerHTML= "Plase Select Name" ; 8: return ; 9: } 10: ...