Thanx for this post. This method is pretty simple and very useful.

~ Maran


xerax nono wrote:
> 
> you can use iterator over a collection.
> see in
> http://www.vaannila.com/struts-2/struts-2-example/struts-2-crud-example-1.html
> 
> <s:iterator value="userList" status="userStatus">
> 44.            <tr
> 45.                class="<s:if test="#userStatus.odd == true ">odd</s:if>
> <
> s:else>even</s:else>">
> 46.                <td><s:property value="name" /></td>
> 47.                <td><s:property value="gender" /></td>
> 48.                <td><s:property value="country" /></td>
> 49.                <td><s:property value="aboutYou" /></td>
> 50.                <td><s:property value="mailingList" /></td>
> 51.                <td>
> 52.                <s:url id="editURL" action="editUser">
> 53.                    <s:param name="id" value="%{id}"></s:param>
> 54.                </s:url>
> 55.                <s:a href="%{editURL}">Edit</s:a>
> 56.                </td>
> 57.                <td>
> 58.                <s:url id="deleteURL" action="deleteUser">
> 59.                    <s:param name="id" value="%{id}"></s:param>
> 60.                </s:url>
> 61.                <s:a href="%{deleteURL}">Delete</s:a>
> 62.                </td>
> 
> 
> 2010/1/7 Frans Thamura <fr...@meruvian.org>
> 
>> can share how the struts2 work with display tag
>>
>>
>> sorry never use this also, how the display tag work with List when we
>> submit the grid
>>
>> F
>>
>>
>>
>>
>> On Thu, Jan 7, 2010 at 7:00 AM, Chris Pratt <thechrispr...@gmail.com>
>> wrote:
>> > We use DisplayTag (http://www.displaytag.org), it works pretty well.
>> >  (*Chris*)
>> >
>> > On Wed, Jan 6, 2010 at 3:28 PM, Sergio
>> > <killing-is-my-busin...@hotmail.com>wrote:
>> >
>> >> Hi, people, how can i show a table into a jsp from the struts action?
>> Are
>> >> there a simple method for doing that? I've tried with java collections
>> into
>> >> the action and "property" tag into the jsp with no success.
>> >>
>> >> thanks in advance
>> >>
>> >> --
>> >> Sergio
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> >> For additional commands, e-mail: user-h...@struts.apache.org
>> >>
>> >>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
> 
> 
> -- 
> Serafin Hernandez Blazquez
> 649 81 64 87
> 
> 

-- 
View this message in context: 
http://old.nabble.com/struts2-and-tables-tp27052707p27057791.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to