Correctly pass a Groovy list to Javascript code in GSP
问题 I'm making a web application with Grails. I've got a list with data that must be included on JavaScript to perform some dynamic load on <select> drop-list. Basically, I'm getting a two level list from the server, then the first level is presented on a drop box. When the user selects an option, the list associated to this option is presented on another drop box. The (simplified) code on the gsp page for the JavaScript function is the following function selecTipe() { var types = ${typeList}