struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fergunet <>
Subject How to list a property in a display:table (Struts 2)
Date Wed, 08 Aug 2007 12:31:41 GMT

Hi all!

I've created a display table to show a list of things and their attributes.
But one of those attributes is another list of objects. I don't know how to
print their names.

Let's see what I have:

<display:table name="usersBase" class="displaytag" pagesize="10"
                       defaultorder="ascending" export="true" id="row"
requestURI="/user/list.mpch" >
            <display:caption title="global.users"/>
            <display:column property="id" titleKey=""
sortable="true" headerClass="sortable"/>
            <display:column property="login" titleKey="global.login"
sortable="true" headerClass="sortable"/>
            <display:column property="name" titleKey=""
sortable="true" headerClass="sortable"/>
            <display:column property="cif" titleKey="global.cif"
sortable="true" headerClass="sortable"/>
            <display:column property="email" titleKey=""
sortable="true" headerClass="sortable"/>
            <display:column property="roles" titleKey="global.roles"
sortable="true" headerClass="sortable"/>
            <display:column title="Roles">
                <s:iterator value="${row.roles}">
            <display:column title="getTextglobal.provider" sortable="true"
                <s:if test="${row.provider}==true">
                    Is provider                    
                    Is not provider

Look at the "roles" property column. That property is a List<RoleVO> which
have an attribute RoleBaseVO wich have the String "name". I'm trying to show
the list of that names. (Now only prints:
org.myapp.common.isc.model.users.RoleVO@1836525] )

I thought to use an iterator as you can see, but the "ITERATE!!!" string is
never shown.

Any ideas? Thanks in advance, and sorry about my English.
View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message