• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

drop down like google auto suggest in strut 1.2

 
Ketan Parekh
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a drop down in struts which is not editable. I have requirement to make it editable like google suggest(auto suggest). I use <html:select> tag and <html ptions> to create drop down. I set the list in action class and retrieve it in jsp page.

Can one suggest me or guide how to have drop down like google suggest, I am using struts 1.2.x. In struts 2 there is auto drop down compoment but i donno how to implement it in struts 1.2

Thanks
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In order to make an autocomplete control in a Struts 1 application, you will need to use a combination of JavaScript and a server-side action. I'd suggest using a JavaScript toolkit such as dojo. This article shows an example of building an autocomplete control using dojo.
 
Ketan Parekh
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Merill, how i will definately look at it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic