Thursday, June 21, 2012

show/hide table in jsp struts

 <logic:equal name="searchPatientFormBean" property="showPatientSearchResult" value="true">  
 <table>  
 ..data..  
 </table>  
 </logic:equal>  
where name="searchPatientFormBean" is the form bean name given in the <action>

property="showPatientSearchResult" is the attribute of form bean whose value is set to false intially.

The table will be displayed only if showPatientSearchResult=true

Followers