Reputation: 23
this is the form for send data value
And this is the controller that value the post
Upvotes: 0
Views: 145
Reputation: 3370
Your input field is named ${surveyDetail.question}
which is the value of the question attribute. It should be named question
which you can then access via params.question
.
Input field:
<input type="text" name="question" value="${surveyDetail.question}" />
In controller:
def value = params.question
Upvotes: 1