views:

9

answers:

1

Hi

in a jsp file i am loading from disk an arraylist which holds coordinates of places. How can i create from this arraylist's elements (server side) markers in a google map (client side).

Thus, the question is how can i put the arraylist elements(coordinates) from the object that i load from disk (from previous app) into a javascript array.

Thank you in advance and sorry for the poor grammar.

A: 

I think that json can do the job.That is you can send an ajax reguest from the client and have the server respond in json format with let's say gson which is a very good library from Google and retrieve the responce back to the client.I think this is an elegant solution.

Argiropoulos Stavros