|
<logic:iterate id="listDetails" name="list" scope="session" type="com.enzen.domain.vo.DomainDetailsVO" >
<tr>
<td><bean:write name="listDetails" property="code"/></td>
<td><bean:write name="listDetails" property="description"/></td>
<td><bean:write name="listDetails" property="active"/></td>
<td><bean:write name="listDetails" property="edit"/></td>
</tr>
</logic:iterate>
Learning and Learning!-- Java all the way!
Learning and Learning!-- Java all the way!
Learning and Learning!-- Java all the way!
Tom Rispoli wrote:you'll probaly want to use s:iterator to do the loop and s:property to display your data.
something like this:
s:iterator will look for "list" in your Ognl value statck, if this is a property of your action class tha you have exposed correctly with getters and setters it will be found on the value stack. As the iterator pulls each element from the list it will put the elment on top of the stack. So when the first s:property tag runs, it will look for "code" on the stack and it should find it in the element from your list that was pushed onto the stack (again, assuming that it is a property of the element with getters and setters). If you want to generate input fields in the loop its a little more complicated, you'll need to give the fully qualified path to the property in your action class and specify what index its at using listStatus.index.
Learning and Learning!-- Java all the way!
Learning and Learning!-- Java all the way!
Learning and Learning!-- Java all the way!
Learning and Learning!-- Java all the way!
Learning and Learning!-- Java all the way!
Learning and Learning!-- Java all the way!
I've read about this kind of thing at the checkout counter. That's where I met this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|