struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jamie M. Guillemette" <Jamie_Guilleme...@av-basesystems.com>
Subject Re: <bean:write > boolean
Date Fri, 04 Jul 2003 13:47:44 GMT
I might suggest writting your own tag then to ouput the desired text. Tags
are not difficult to write and you can make changes to it pretty easily if
you need to modify the functionality later one.

JMG



----- Original Message -----
From: "SuniX" <kafchoice@yahoo.fr>
To: <struts-user@jakarta.apache.org>
Sent: Friday, July 04, 2003 9:40 AM
Subject: <bean:write > boolean


> hi i have a arraylist of bean with  boolean attributs
> and i want to render a image (or another string than true) when it's
> true and another image when it's false :
>
> <logic:iterate id="permissionbean" name="permissionsList" >
>    <tr>
>     <td><bean:write name="permissionbean" property="user.group"/></td>
>     <td><bean:write name="permissionbean" property="user.name"/></td>
>     <td><bean:write name="permissionbean" property="read"/></td>
>     <td><bean:write name="permissionbean" property="write"/></td>
> <!-- it render "true" or "false" but i want to render "writeable" or
> "not writeable" -->
>
>    </tr>
> </logic:iterate>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message