The purpose of these tags is to print out the body of the tag if the comparison evaluates to true. The following tags can be used in JSP.

<logic: Equal>
<logic: notEqual>
<logic:lessEqual > 

This example shows the use of <logic:Equal> tag. This code shows the row of the table if the value of the property equals to 10.

 <logic:Equal name="validationForm" property="creditApproved" value="10">
         <td noWrap class="Field" height=23 width="130" >Credit Line: </td>
         <td noWrap class="Field" height=23 width="148" >
<bean:write name="validationForm" property="creditApproved" />