|
Hi Kat
In my struts-config
<action
path="/edittimesheet"
type="org.teatimej.timesheet.EditTimeSheetAction" name="timesheetform" scope="session"> <forward name="success" path="/editconsultanttimesheetpage.jsp" /> </action> This is how I iterate through my arraylist in my
jsp.
<logic:iterate id="timerowlist"
name="timesheetform"
property="timeHeader.timeRow" type="org.teatimej.timesheet.dao.TimeRowView"> <bean:write
name="timerowlist" property="RowName"/>
</logic:iterate>
My timesheetform bean contains an attribute called
timeHeader bean. Hence in my timesheetform bean I
have the getter and setter methods (eg getTimeHeader(), setTimeHeader()) which
access the TimeHeader Bean.
My TimeHeader bean contains an attribute of type
java.util.ArrayList named TimeRow. I also added the getter and setter methods
(eg getTimeRow() and setTimeRow())
The objects that I add to TimeRow are of type
org.teatimej.timesheet.dao.TimeRowView.
Hope it helps.
|
- Displaying data retrieved from a database Jonathan Asbell
- RE: Displaying data retrieved from a database Michael Mok
- RE: Displaying data retrieved from a database Luna, Kat
- Re: Displaying data retrieved from a database William Jaynes
- RE: Displaying data retrieved from a database Michael Mok
- RE: Displaying data retrieved from a database Luna, Kat

