Originally posted by priya pratheepp:
I am doing one auto complete program using jsp,js-query..
Do you mean jQuery?
getting the error of can not find rs..
What is rs? Where is it defined?
It would be much more helpful to show the
exact error message rather than a paraphrasing.
out.println("<li onClicks='fill(\" + \" + rs.getString(1)+ \"+ \");'>"+ rs.getString(1) +"</li>");
Why on earth are you using out.printlin inside a JSP to emit markup? The whole purpose of a JSP to allow you to use template text so that you don't have to generate markup inside
Java strings.
From looking at this I assuming that the HTML markup you are sending to the browser may not be correct. Do a View Source in the browser and check the HTML and JavaScript that the JSP is generating.
[ May 11, 2008: Message edited by: Bear Bibeault ]