Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What does Model Attribute Mean in a Spring specified form tag

 
Vishal Hegde
Ranch Hand
Posts: 1077
Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does Model Attribute Mean in a Spring specified form tag

<form:form id="newBGCExcForm" name="bgcExc" modelAttribute="bgcExc">
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you see my response to your other question here?
http://www.coderanch.com/t/590718/Spring/does-commandName-mean-Spring

I addressed this question there as well.
 
Ashwin Sridhar
Ranch Hand
Posts: 277
Flex Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This specifies the Object name that is mapped in the controller. By default it is "command" . When you return a ModelView Object from controller, form and pojo objects are matched based on this attribute name.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic