Retrieving values from a table cell <td> to a controller

holeefcuk

New Member
I'm trying to get a specific value from a table cell and pass is to a controller. But it doesn't seem to be working. I show you some of my codes:This is in the controller:\[code\]def searchUser = { String abc = request.getParameter("harrow") println(abc) }\[/code\]This is in the html page:\[code\] <form> <div style="height: 250px; overflow: scroll; width: 100%;"> <table id="normal"> <g:each in = "${result}"> <tr id="btn"> <td width=10% >${it.ID}</td> <td width=25% id="harrow">${it.username}</td> </tr> </g:each> </table> </div> <input type ="submit" name ="abc" id="opener"> </form>\[/code\]However what printed out was, 'null', is there a different syntax or way to get the value from the td cell? Thank you guys so much.
 
Back
Top