Orbeon Form Builder- 在 mySQL 中保存用户输入的数据

Orbeon Form Builder- Saving User entered data in mySQL

我有一个使用 Orbeon Form Builder 创建的表单 我已经保存并发布了该表单,当我在新选项卡中打开它时,这是使用表单控件的样子等等see picture 1

现在我想在 MySQL table 秒内保存用户输入的数据。

所以我关注了http://doc.orbeon.com/form-runner/persistence/relational-db.html

我将以下内容添加到我的 tomcat/conf/server.xml 内的引擎 -> 主机标签`

    <Context
       path="/orbeon"
       docBase="/orbeon"
      reloadable="false"
  override="true"
  allowLinking="true">
    <Resource name="jdbc/mysql" auth="Container" type="javax.sql.DataSource"
      initialSize="3" maxActive="10" maxIdle="20" maxWait="30000"
      driverClassName="com.mysql.jdbc.Driver"
      poolPreparedStatements="true"
      username="orbeon"
      password="orbeon"
      url="jdbc:mysql://localhost:3306/orbeon?useUnicode=true&amp;characterEncoding=UTF8"/> 
 </Context>   

` 我还在我的属性中添加了以下行-local.xml

    <property as="xs:string" name="oxf.fr.persistence.app.uri.*.*.* " value="mysql"/> 
  <property as="xs:string" name="oxf.fr.persistence.mysql.datasource" value="mysql"/> 

但是当我将示例数据添加到已发布的表单并单击 'Save' 按钮时 see picture 2 the MySQL table orbeon_form_data is empty see picture 3,请帮助我将用户输入的数据保存到 MySQL table。

你是说你设置了:

<property as="xs:string"
          name="oxf.fr.persistence.app.uri.*.*.* "
          value="mysql"/>

相反,您应该:

<property as="xs:string"
          name="oxf.fr.persistence.provider.*.*.*"
          value="mysql"/>

有关这方面的更多信息,请参阅 section on the property to set which implementation of the persistence API you want to us