File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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: 1682

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...
I agree. Here's the link:
subject: SimpleFormController form binding
It's not a secret anymore!