Mule studio 我需要从输入html表单中获取值,以便在Mule studio使用的数据库中用作查询

Mule studio 我需要从输入html表单中获取值,以便在Mule studio使用的数据库中用作查询,mule-studio,Mule Studio,如何从html输入中获取值,以便在mule studio的数据库中用作查询 <http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="8081" doc:name="HTTP Listener Configuration"/> <db:mysql-config name="MySQL_Configuration" host="localhost" port="33

如何从html输入中获取值,以便在mule studio的数据库中用作查询

<http:listener-config name="HTTP_Listener_Configuration" host="localhost" 
      port="8081" doc:name="HTTP Listener Configuration"/>
<db:mysql-config name="MySQL_Configuration" host="localhost" port="3306" 
      user="root" password="Blue1234" database="news" doc:name="MySQL Configuration"/>
<flow name="searchhtmlFlow">
    <http:listener config-ref="HTTP_Listener_Configuration" path="/web" doc:name="HTTP"/>
    <db:select config-ref="MySQL_Configuration" doc:name="Database">
        <db:parameterized-query><![CDATA[select txt from news.nws where sub=#[message.inboundProperties[q]]]]></db:parameterized-query>
    </db:select>
    <parse-template location="C:\Users\Hersh\Desktop\attach\index.html" doc:name="Parse Template"/>
    <set-property propertyName="content" value="#[message.inboundProperties.'http.query.params'.q]" doc:name="Property"/>
</flow>

试试这个:-

<http:listener-config name="HTTP_Listener_Configuration" host="localhost" 
      port="8081" doc:name="HTTP Listener Configuration"/>
<db:mysql-config name="MySQL_Configuration" host="localhost" port="3306" 
      user="root" password="Blue1234" database="news" doc:name="MySQL Configuration"/>
<flow name="searchhtmlFlow">
    <http:listener config-ref="HTTP_Listener_Configuration" path="/web" doc:name="HTTP"/>
    <parse-template location="C:\Users\Hersh\Desktop\attach\index.html" doc:name="Parse Template"/>
        <logger message="Value from DB :- #[message.inboundProperties.'http.query.params'.q]" level="INFO" doc:name="Logger"/>
        <db:select config-ref="MySQL_Configuration" doc:name="Database">
            <db:parameterized-query><![CDATA[select txt from news.nws where sub=#[message.inboundProperties[q]]]]></db:parameterized-query>
        </db:select>
        <logger message="#[payload]" level="INFO" doc:name="Logger"/>
</flow>