I'm currently developing in the Play framework and I'm facing a challenge with using a Java array inside Javascript.
My attempt so far is as follows -
var jsarray = ${javaArray};
The javaArray
refers to the array stored in the Java controller and passed to the HTML view.
Unfortunately, this approach doesn't seem to be working. Can someone offer assistance on how to properly handle this?