struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Struts 2.3.28.1 - Populate Java Property from Controller inside JavaScript
Date Mon, 29 Aug 2016 07:10:04 GMT
2016-08-27 0:08 GMT+02:00 Guilherme Bisconcini
<guilherme.bisconcini@sefisa.com.br>:
> Hi all,
>
> First of all, greetings, from Brazil.
>
> I would like to populate this Java Script variable with name
> *flightPlanCoordinates
> *from a Action Controller.
>
> var flightPlanCoordinates = [
>
>
> {lat: -23.533592, lng: -46.742744},
>
> {lat: -23.533592, lng: -46.742744},
>
> {lat: -23.533870, lng: -46.742804},
>
> {lat: -23.533978, lng: -46.742890}
> ];
>
> Whats the best approach to do? I how can I use tag libs from Struts to
> mount this *flightPlanCoordinates ?*

I'd rather use a JSON endpoint instead of directly populating such
variable in a page.


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message