i am really sorry for that the solution that i used is as under
this is javascript i used:
<script language="javascript">
var intTextBox=0;
function getCustomerName()
{
document.form3.action="";
document.form3.submit();
}
</script>
and jsp code is as follows
<select name="Customer" onchange="getCustomerName();">
<option></option>
<%
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:PKEL", "SYS AS SYSDBA", "bankim");
Statement st=con.createStatement();
ResultSet result=st.executeQuery(" select * from CUSTOMER_MASTER ");
while(result.next()){
name=result.getString(1);
%>
<option value="<%=name%>">
<%out.println(name);%>
</option>
<%}con.close(); %>
</select>
</div>
<%
cust_id=request.getParameter("Customer");
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con11=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:PKEL", "SYS AS SYSDBA", "bankim");
Statement st11=con11.createStatement();
ResultSet result11=st11.executeQuery(" select * from CUSTOMER_MASTER where CUST_ID='" + cust_id + "' ");
while(result11.next()){
name11=result11.getString(3);
name12=result11.getString(1);
%>
</form>
<%} con11.close();%></td></tr>
<tr>
<td height="42"><label>
<div align="center">CUSTOMER_ID/NAME</div>
</label></td>
<td>
<div align="center">
<label> <%if(name12==null)
{
}
else
{
out.println(name12);
}%></label>
<label> <%if(name11==null)
{
}
else
{
out.println(name11);
}
%></label>