Hi All,

I have an array of String "members"... where member[0] is the member id and
member[1] is the member's name.

In the jsp, I want to display member[1] if it is not empty, or member[0] if
member[1] is empty.

<s:if test="%{members[#status.index][1]} == '' ">
        <s:property value="%{distinctIssuePartyId[#status.index][0]}"/>         
                                    
</s:if>
<s:else>
        <s:property value="%{distinctIssuePartyId[#status.index][1]}"/>
</s:else>

However, the else logic is executed no matter member[1] is empty or not.

How can I test with empty string?

Thanks in advance

Queenie
-- 
View this message in context: 
http://www.nabble.com/s%3Aif-test-with-empty-String-tp15174836p15174836.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to