Announcement Announcement Module
Collapse
No announcement yet.
form:form modelAttribute doesn't work with method="get" Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • form:form modelAttribute doesn't work with method="get"

    Hey folks,

    Complete newb at Spring MVC here. I need to change a form's method from POST to GET, but would still like the form fields within to auto-populate as they did when it was POST (except, of course, now based on the query string values).

    Apart from manually inserting the value via request.getParameter() in all the fields, is there an easy way to wire the form inputs to automagically populate their values based on the query string parameters?

    Thanks in advance.
Working...
X