There are two ways you can get complete form data to your Controller.
- You can get using request.getParameter("element_name");
Using this approach you are not using the Spring MVC's Form Element-Class Property Binding Feature.
- You can create POJO class of the element present inside your HTML Form.
In this approach you no need to get each value of form using request.getParameter("element_name"); instead you will get filled POJO object, which can be more handy to work on.
Also, you can handle data type binding errors more easily and in neat way.
For form element to class property binding refer,
Best Help : http://www.mkyong.com/spring-mvc/spring-mvc-form-handling-example/
For your requirement, you can't directly get in JSON/XML Format, Instead you need to call javascript function onSubmit and then create JSON/XML of form you needed and then you can submit the form.