
I have a jsp page called page1.jsp with 3 text fields name,phone ,city.i populated these datas into a database table through servlet (page1servlet.java) and bean(page1bean.java).I have another jsp page(display.jsp) with 4 fields name, city ,phone.Once the user enter the name, city and phone should be automatically populated from database through servlet(SetDetailsServlet.java)..I did till connecting and populating datas in datbase bt I could not populate the datas automatically from databse in jsp on entering name ...can u help me????????
My codes**
these are my codes.....
Page1.jsp
<%@ page import="java.sql.*" %> <%@ page import="java.io.*" %>
<HTML> <HEAD> <TITLE>insert data using prepared statement
<BODY bgcolor="#ffffcc">
loginform!
<FORM action="page1servlet" method="post"> <TABLE style="background-color: #ECE5B6;" WIDTH="30%" >
<TR>
<TH width="50%">Name</TH>
<TD width="50%"><INPUT TYPE="text" NAME="name"></TD>
</tr>
<TR>
<TH width="50%">City</TH>
<TD width="50%"><INPUT TYPE="text" NAME="city"></TD>
</tr>
<TR>
<TH width="50%">Phone</TH>
<TD width="50%"><INPUT TYPE="text" NAME="phone"></TD>
</tr>
<TR>
<TH></TH>
<TD width="50%"><INPUT TYPE="submit" VALUE="submit"></TD>
</tr>