Hello All I am new to Spring environment.
I am doing this in jsp page.
<form action="add">
Name : <input type="text" name="name"/>
Contact : <input type="text" name="contact"/>
Age : <input type="text" name="age"/>
<input type="submit" name="Submit"/> </form>
I want send this data into controller method as Employee object not as individual fields.
I am doing something like that in controller
@RequestMapping(value="/add" Method=RequestMethod,POST)
public String addEmployee(@ModelAttribute("employee") Employee
employee, Model model) {
...
...
}
I think know how to handle object in controller method but don't know how to send object to controller from jsp. Please guide.