struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Shen" <>
Subject Re: noob question - iteration of a table
Date Sat, 08 Feb 2003 22:51:09 GMT
You need to fetch your table content as a List and put the List inside the 
session with a name. All these should happen inside an Action.

On the result page, you need to use <logic:iterate> tag to process the item 
of your List one by one.

<logic:iterate id="row" name="nameOfYourList">
<tr><td><bean:write name="row" property="beanProperty"/></td>

Read through the struts document, it will help.

>From: Jason Vinson <>
>Reply-To: "Struts Users Mailing List" <>
>To: Struts Users Mailing List <>
>Subject: noob question - iteration of a table
>Date: Thu, 6 Feb 2003 14:14:42 -0500 (EST)
>I am relatively new to struts (using 1.1b3), and I am trying to figure out 
>how to iterate a group of tr & td's.  I am under the impression that i can 
>setup all my data in the action form and use a special taglib to iterate a 
>table in my jsp file, but I have no idea how to do it.  Can anyone steer me 
>in the right direction?
>To unsubscribe, e-mail:
>For additional commands, e-mail:

The new MSN 8: smart spam protection and 2 months FREE*

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

View raw message