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 SimpleFormController form binding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "SimpleFormController form binding" Watch "SimpleFormController form binding" New topic
Author

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
Bartender

Joined: Mar 07, 2010
Posts: 1666
    
    7

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/


[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: http://aspose.com/file-tools
 
subject: SimpleFormController form binding