I have been searching on Google for a really good while, and I cannot find a solution to this problem. I am trying to access a JavaScript variable from my GSP file in my Groovy controller, but I can't find out how to do this.
Example:
//JavaScript stuff
<script>
function validateForm(){
var ret = false
}
</script>
//Groovy controller stuff
def myAction = {
println params.ret
}
How do I achieve something similar to this?
${remoteFunction(controller: ActionsController, action:'ImplementNewPixel', params: 'ret')}But no I have not tried anything with sessions yet. How would you use sessions?