aspose file tools*
The moose likes Spring and the fly likes What does Model Attribute Mean in a Spring specified form tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "What does Model Attribute Mean in a Spring specified form tag" Watch "What does Model Attribute Mean in a Spring specified form tag" New topic
Author

What does Model Attribute Mean in a Spring specified form tag

Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1056

What does Model Attribute Mean in a Spring specified form tag

<form:form id="newBGCExcForm" name="bgcExc" modelAttribute="bgcExc">


http://www.lifesbizzare.blogspot.com || OCJP:81%
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1680
    
    7

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.


[How To Ask Questions][Read before you PM me]
Ashwin Sridhar
Ranch Hand

Joined: Jul 09, 2011
Posts: 272

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.


Ashwin Sridhar
SCJP | SCWCD | OCA
 
jQuery in Action, 2nd edition
 
subject: What does Model Attribute Mean in a Spring specified form tag