Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们在 gwt 中有一个表单面板。
我们的表单面板的操作设置为一个 aspx 页面。根据预期的输出,使用POST方法通过表单面板发送的信息被设置到操作 aspx 页面中,成功响应后,我们将被重定向到操作 aspx 页面。
POST
getResults()但是我们从 的函数中接收到 null onSubmitCompleteHandler。当我们检查检查元素的请求网络部分的响应值时,我们发现与预期相同的结果。
getResults()
onSubmitCompleteHandler
如果您跨域发布表单,则无法访问结果。
从javadoc:
提示: 结果 html 可能是null向不同域提交表单的结果。
null
– 来源: http: //www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/FormPanel.SubmitCompleteEvent.html#getResults()