• 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 suggestion form database

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi guys , i am having a text box in my jsp page. i want to have auto suggestion feature to it . the content as i type in the text box should be taken from database. i am working on struts 1.0 . can anyone help me out in this problem ??


Also one more thing.. i am using a dynamic table in my jsp page which iterates results from database and displays it as a table format. i have a button called "export to excel" in my page. if i click on this button i should be able to retrieve the table content as a excel sheet generated. how do i do this in struts ???

i am a beginner in struts .. so kindly help me out with this issues.. thanking big moose saloon users...
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by venkatesh warlu:
how do i do this in struts ???


In order to accomplish this, you will need to spend some time learning AJAX, JavaScript and possibly a JavScript tool kit such as DOJO. While you can create a type-ahead in a Struts project the only thing Struts might possibly provide is an Action that will query the database for a list of suggestions. The rest is all handled in the browser/AJAX layer. This article might be a good place to start.
 
venkatesh warlu
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks Merrill Higginson,

thanks for your links. i will surely go through and try solving my issue.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic