Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/security/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Security 如何将post方法添加到ofbiz中的链接?_Security_Post_Hyperlink_Ofbiz - Fatal编程技术网

Security 如何将post方法添加到ofbiz中的链接?

Security 如何将post方法添加到ofbiz中的链接?,security,post,hyperlink,ofbiz,Security,Post,Hyperlink,Ofbiz,我正在使用ofbiz框架进行开发。但我对链接标签的方法感到困惑。由于安全原因,我不想在addressbar的地址中显示参数的值。事实上,我通常对标记使用method=“post”,但在ofbiz中,我不知道什么属性可以做到这一点。在这种情况下我该怎么办?我的解决方案是: 我使用form元素而不是link元素,因为表单使用post作为默认方法: 如果我的链接元素是: <link target="myTarget"> <parameter param-name="myPar

我正在使用ofbiz框架进行开发。但我对链接标签的方法感到困惑。由于安全原因,我不想在addressbar的地址中显示参数的值。事实上,我通常对标记使用method=“post”,但在ofbiz中,我不知道什么属性可以做到这一点。在这种情况下我该怎么办?

我的解决方案是:

我使用
form
元素而不是
link
元素,因为表单使用
post
作为默认方法:

如果我的链接元素是:

<link target="myTarget">
    <parameter param-name="myParameter" from-field="myField"/>
</link>

我的表单元素将是:

<form name="myForms" type="single" target="myTarget">
    <field name="myField" parameter-name="myParameter">
        <hidden></hidden>
    </field>
    <field name="mySubmitButton" title="${uiLabelMap.myButtonTitle}">
        <submit button-type="button"/>
    </field>
</form>