-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}'>
请检查一下这样
当第一个按钮? –