Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/324.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
Jsp 单击“搜索”按钮时,显示“更新”按钮和“隐藏保存”按钮_Jsp_Struts2 - Fatal编程技术网

Jsp 单击“搜索”按钮时,显示“更新”按钮和“隐藏保存”按钮

Jsp 单击“搜索”按钮时,显示“更新”按钮和“隐藏保存”按钮,jsp,struts2,Jsp,Struts2,在加载页面上,我想隐藏更新按钮。单击搜索按钮时,显示更新按钮和隐藏保存按钮。对不起,我错了。 当你检查的时候 <s:if test='%{cust_id!=""}'> <s:submit cssclass="pagebutton" action="Custmer_ entry" theme="simple" value="update" on click="validate"/> 您需要检查它是否为空,就像 <s:if test='%{cust_id!

在加载页面上,我想隐藏更新按钮。单击搜索按钮时,显示更新按钮和隐藏保存按钮。

对不起,我错了。
当你检查的时候

<s:if test='%{cust_id!=""}'>
<s:submit cssclass="pagebutton" action="Custmer_ entry" theme="simple" value="update" on click="validate"/>

您需要检查它是否为空,就像

    <s:if test='%{cust_id!=""}'>


请这样检查

第一个按钮在哪里?
    <s:if test='%{cust_id!="" || cust_id!=null}'>