Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SimpleFormController form binding

 
Rakesh Basani
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

http://viralpatel.net/blogs/spring-3-mvc-handling-forms/
 
Rakesh Basani
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for your valuable reply bill...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic