ttchiwandire 0 Newbie Poster

Hie good friends! I have got a Jsp form for creating a database record for students. The form has got a drop down box for Countries, but the countries are too many that a user may spend a lot of time scrolling to locate his/her country.
The drop down is being populated from a list of Countries in a mysql database.
So what I want to do is have an autocomplete feature filtering through the country list as the user types in a textbox.
What I have done so far is writing a method that returns a lis of Countries from a database, but I dont know how to convert this list of countries into JSON format while in the Spring Controller and passing this data to a jsp page and the jquery works to make it autocomplete.

Your help is greatly appreciated guys even examples that do not use Json are welcome.

I hear of dwr, but dont know how to make use of it in Jquery autocomplete.

Regards

Tatenda.