Hi:
In my struts-based application I am using a <html:logic> tag in my JSP page
to print two links depends on the value of a struts-based databean's
property. Bacially on this JSP page, a list of records wil be displayed.
Next to each record, either a "Create" link or an "Update" link should be
displayed depends upon the property '"shopOrderExist". If this property has
the value "notExist", it should display the "Create" link. If it is not
equal to "notExist", it should display the "Update" link. For some reason,
the "Update" link is always displayed even though "shopOrderExist" has a
value of "notExist". So the logic:equal tag is not comparing things
correctly. Am I doing it wrong? (note, the property "shopOrderExist" is of
type String and in Debug I see that its value is "notExist") 

Here's my code:
<logic:iterate id="sequenceList"
collection="<%=ShopWorkOrderSearchFormBean.getPage()%>"
type="com.cat.fdd.dataBean.shopWorkOrder.ShopWorkOrderSearchBean">
<tr>
<td class="listCell"><bean:write name="sequenceList" property="sequence"/>
</td>

<!-- If the ShopOrderExist attribue is not equal to "notExist", display
Create link ,otherwise Update link-->
<logic:equal name="sequenceList" property="shopOrderExist" value="notExist">
<a href="app/fdd/shopWorkOrder/CreateShopWorkOrderRequest.exec">
<img src="images/icoAdd.gif" border="0"></a> 
</logic:equal>
<logic:notEqual name="sequenceList" property="shopOrderExist"
value="notExist">
<a href="app/fdd/shopWorkOrder/UpdateShopWorkOrderRequest.exec">
<img src="images/icoEdit.gif" border="0"></a> 
</logic:notEqual>
</td>
</tr>

Thanks in advance! 
Stella


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to