开发者

Submitting one form to multiple controllers

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?


  1. Gather the data with javascript (jquery). Do that by id / name, regardless of the fact they are in on form.
  2. Make two separate ajax requests to two different urls, mapping two different methods
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜