开发者

Submitting one form to multiple controllers

开发者 https://www.devze.com 2023-03-07 17:46 出处:网络
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 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

精彩评论

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