1

我正在使用 spring mvc 框架开发应用程序。我有一个要求,我应该能够从单个 jsp 页面提交多个表单。为此,我使用了多个 iframe,每个 iframe 将包含一个表单。现在的问题是如何只使用一个提交按钮一次提交位于不同 iframe(但相同的父 jsp 页面)中的所有表单。

4

1 回答 1

1

I think the only way to accomplish what you want would be to use JavaScript to suck in all the various iFrame form data into one form and submit that. If you were going the other way (trying to post from the parent frame to the child), I think you can use the target attribute on the form element to determine which frame to load the results to.

于 2013-03-01T14:19:35.177 回答