File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Spring
Reply 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: 972

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: 1282

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What does Model Attribute Mean in a Spring specified form tag
 
Similar Threads
How control goes from jsp page to web.xml
What does commandName mean in Spring?
Ways of getting [Servlet Error]- [BeanUtils.populate] exception
What is the purpose of scope attribute?
Whats wrong with <H:FORM> Tag