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
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: drop down like google auto suggest in strut 1.2
 
Similar Threads
accessing database using javascript
saving preselected drop down value
editable dropdown in struts
Ajax with Struts - Loading the lookup values in drop down
dynamic list box issue