aspose file tools*
The moose likes Struts and the fly likes drop down like google auto suggest in strut 1.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "drop down like google auto suggest in strut 1.2" Watch "drop down like google auto suggest in strut 1.2" New topic
Author

drop down like google auto suggest in strut 1.2

Ketan Parekh
Greenhorn

Joined: Sep 15, 2005
Posts: 20
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

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
Ketan Parekh
Greenhorn

Joined: Sep 15, 2005
Posts: 20
Thanks Merill, how i will definately look at it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: drop down like google auto suggest in strut 1.2