我发布了Orbeon表格。我启用了两个表单按钮,保存并发送:
properties-local.xml
文件覆盖“发送”按钮的操作。它将数据发送到我的Web应用程序。我知道在将表单发送到我的Web应用程序端点时,会返回以下值:文档,进程,有效,应用程序,表单,表单版本和语言。
调用Java嵌入API时,只需提供以下内容:
<%
API.embedFormJava(
request,
out,
myAppName, // set this as needed
myFormName, // set this as needed
"edit", // the `edit` mode loads form data from the database
myDocumentId, // this is the id of the document in the database
null,
null
);
%>
这样,表单将从数据库加载数据,用户将能够更改数据。