tags:

views:

154

answers:

3

How to get auto suggestion from server, list of items in textbox which can be selected in Java/J2EE ?

A: 

You need to use AJAX to do it.

Try this.

Ngu Soon Hui
Thank you. How to use this ajax?
Dhruv Parekh
A: 

This link will sure help you check this out :

http://www.w3schools.com/Ajax/ajax_example_suggest.asp

infant programmer
That is great to learn how just consider using a framework it will make it much easier on you in the long run once you understand what is happening under the hood move to a framework.Also the example will only help do a suggestion not autocomplete at all which seems silly as you already have the webservice why not help the user with autocomplete?
Jeff Beck
+1  A: 

I would suggest using jQuery it has a nice autocomplete plugin. You will need to build a simple webservice to provide the data.

So you will be building the simple Java backend that deals with getting the data out and then using the autocomplete to consume that data on the front end.

Jeff Beck
I have no option but call it the best answer .. +1Pretty nice post .. :-)
infant programmer