views:

38

answers:

1

Hi,
I am developing an application in JSPs and Servlets, and I want to know if, and how it is possible to pass an array from my application in to some javascript so that i can use the Autocomplete feature from the jquery ui library.
Thanks in Advance
Dean

+3  A: 

Yes it's quite easy, you need to use JSON.

http://www.json.org/java/

http://api.jquery.com/jQuery.parseJSON/

Paul Creasey
I've downloaded the zip but im having issues unpacking it permission denied is the error im getting anywhere else i can get it from?
Dean
jquery? it's available on google CDN http://code.google.com/apis/ajaxlibs/documentation/
Paul Creasey