I draw a google chart in a jsp page and I want to set the value of a javascript variable in a jslt variable (I'm not sure that I can make it)
I have this :
google.visualization.events.addListener(chart, 'ready', function () {
chart_div.innerHTML = '<img src="' + chart.getImageURI() + '">'; //I want to have chart.getImageURI() in a jslt var for pass it in parameter
console.log(chart_div.innerHTML);
});
And I want to make something like this :
<c:set var="var1" value="myUrl"/> //Where myUrl = chart.getImageURI()
I know that javascript is generated by browser so I think it's not possible to take the javascript var in my jsp but if you have some ideas to help me it should be perfect !
Thanks in advance !