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 <[email protected]>
> 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 <[email protected]>
> wrote:
> > We use DisplayTag (http://www.displaytag.org), it works pretty well.
> > (*Chris*)
> >
> > On Wed, Jan 6, 2010 at 3:28 PM, Sergio
> > <[email protected]>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: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
--
Serafin Hernandez Blazquez
649 81 64 87