• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

auto complete

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends,

I am doing one auto complete program using jsp,js-query..

It is working fine .When i type the first letter the corresponding datas are displaying.
When i select or click the data i can't able to select that and disply that in the text box.getting the error of can not find rs..

Please help
code where i am getting problem is


html code where fill method is


Thanks in advance
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 ]
 
priya pratheepp
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes jquery...

but i got the solution.I wrongly put to "

thanks
reply
    Bookmark Topic Watch Topic
  • New Topic