jsp - On clicking search button display update button and hide save button -


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

on loading page,i want hide update button.on clicking search button display update button , hide save button.

sorry wrong.
when check

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

you need check if null like

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

please check way


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -