|
How to use logical tags in JSP |
|
|
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:greater:Equal>
<logic:lessEqual >
<logic:greaterThan>
<logic:lessThan>
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">
<tr>
<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" />
</td>
</tr>
</logic:Equal>
|
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.