You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Zsolt Koppany <zk...@web.de> on 2002/11/25 21:46:25 UTC

How can I use for properties such as isKnown() ?

Hi,

is it possible to use <logic:...> for properties such as isKnown()? I would 
like to rewrite the code as follows:
<%	is (x.isKnown()) { %>
....
<%	} %>

Zsolt

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: How can I use for properties such as isKnown() ?

Posted by Patrice <pp...@nerim.net>.
x.isKnown() seems to return a boolean, so, I think you can do this:

<logic:equal name="x" property="known" value="true">
...
</logic:equal>


Hope it helps
Patrice


----- Original Message -----
From: "Zsolt Koppany" <zk...@web.de>
To: <st...@jakarta.apache.org>
Sent: Monday, November 25, 2002 9:46 PM
Subject: How can I use <logic:...> for properties such as isKnown() ?


> Hi,
>
> is it possible to use <logic:...> for properties such as isKnown()? I
would
> like to rewrite the code as follows:
> <% is (x.isKnown()) { %>
> ....
> <% } %>
>
> Zsolt
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>