Hey GUYS I try to pass an array from a controller to a - TopicsExpress



          

Hey GUYS I try to pass an array from a controller to a javascript code into a gsp page. I tried with Controller : def stat(){ def listSubject = [[Physique, 10, 85, 1], [Arabe, 20, 14, 3]] [listSubject] } stat.gsp : var data=${listSubject} ; But it looks like considering the data as if it was a string and not an array. I tried also to add var data=${listSubject.encodeAsJavaScript()} ; But no result :( Please i need your helps. Thanks :)
Posted on: Wed, 20 Aug 2014 21:55:41 +0000

Trending Topics



Recently Viewed Topics




© 2015