aspose file tools
The moose likes Spring and the fly likes SimpleFormController form binding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "SimpleFormController form binding" Watch "SimpleFormController form binding" New topic

SimpleFormController form binding

Rakesh Basani
Ranch Hand

Joined: Jun 04, 2012
Posts: 38
Hi guys.. I am new to this forum... This is my first post in this forum..

I am using simpleformcontroller to get Employee details from the form.. I have objects of 2 other classes (JobDetails and Salary) and Set of Address class in Employee class.. I dont know how to bind such a kind of object (Employee) with the form.. I want get all the details at a time from the form.. I am using Spring MVC
Can anyone suggest me what is the correct way to tackle it..

class Employee
JobDetails jobDetails;
Set<Address> address;
Salary salary;
String name;
int id;
Bill Gorder

Joined: Mar 07, 2010
Posts: 1681

Do not use SimpleFormController for new projects. Try to find Spring 3.x examples to learn from.

Try this one for a very simple spring form example.

[How To Ask Questions][Read before you PM me]
Rakesh Basani
Ranch Hand

Joined: Jun 04, 2012
Posts: 38
Thank you very much for your valuable reply bill...
jQuery in Action, 2nd edition
subject: SimpleFormController form binding