-3
<s:if test='%{cust_id!=""}'>
<s:submit cssclass="pagebutton" action="Custmer_ entry" theme="simple" value="update" on click="validate"/>
加載頁面上,我想隱藏更新button.On點擊搜索按鈕顯示更新按鈕,隱藏保存按鈕。在點擊搜索按鈕顯示更新按鈕,隱藏保存按鈕
<s:if test='%{cust_id!=""}'>
<s:submit cssclass="pagebutton" action="Custmer_ entry" theme="simple" value="update" on click="validate"/>
加載頁面上,我想隱藏更新button.On點擊搜索按鈕顯示更新按鈕,隱藏保存按鈕。在點擊搜索按鈕顯示更新按鈕,隱藏保存按鈕
對不起,我錯了。
當您檢查
<s:if test='%{cust_id!=""}'>
你需要檢查它是否是空喜歡
<s:if test='%{cust_id!="" || cust_id!=null}'>
請檢查一下這樣
當第一個按鈕? –