How to escape apostrophe in WSO2 property XPath expression

前端 未结 1 1206
南方客
南方客 2021-01-22 00:59

My problem is to quote the values obtained from get-property(\'cf\') in

相关标签:
1条回答
  • 2021-01-22 01:36

    the cleanest way is to define a constant:

    <property name="apos" scope="default" type="STRING" value="'"/>
    

    and then use it as follow:

    <property expression="fn:concat(get-property('whereConcat'),' AND PA_INATO=',get-property('apos'), get-property('cf'),get-property('apos'))" name="whereConcat" scope="default" type="STRING"/>
    
    0 讨论(0)
提交回复
热议问题