I have a form in which some fields must be submitted to one controller and other fields to another controller. There is also some overl开发者_Go百科ap.
I need to submit these fields via an ajax call(s).
What's the best way to do this in Spring 3 MVC?
- Gather the data with javascript (jquery). Do that by id / name, regardless of the fact they are in on form.
- Make two separate ajax requests to two different urls, mapping two different methods
精彩评论