dynamic values problem

hi all,

my problem is smthing like this.. say i have a textbox in html and based on the value of that textbox i want to invoke an sql that fetches records into select(html) object.. and i want to do this on onblur on that text box.. can u plz help in doing this

thanx and regards

parimala

[329 byte] By [upgradeparimala] at [2007-9-26 1:46:22]
# 1
you could call a javascript function from your onBlur event which submits a form which will call your servlet with your SQL, then from the servlet, add the result to the request and reload your page
susieM at 2007-6-29 2:44:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

<%

String InputString=request.getParameter("InputString");

if (InputString != null){

// get values depending on InputString

}

%>

// bla bla.. html stuff

<form name .. bla ..bla action="same jsp page" >

<input name="InputString" onChange='this.form.submit()' value="">

<%

if (InputString != null){

%>

<select>

// your for loop here..

</select>

<% };

%>

</form>

Hope U got it

sribk at 2007-6-29 2:44:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...