I have some data in My controller which i want to use in Javascript in my gsp file
class MainController {
def test = {
def value = 111.10
}
}
TEST.GSP
<html>
<head><title>Simple GSP page</title></head>
<body>
<script language="JavaScript">
alert("${value}")
</script>
</body>
</html>
Dialog box appears but without any value .. Any Solution ..?
Thanks