Dean
Dean

Reputation: 8998

Pass array from my application to JS

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

Upvotes: 1

Views: 155

Answers (1)

Paul Creasey
Paul Creasey

Reputation: 28884

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

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

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

Upvotes: 3

Related Questions