This is the jsp I am using with no success.  I thought it would be straight
forward.
Obviously I am missing something.
                        <s:iterator value="report.headerRow">
                                <s:iterator value="dataColumns">
                                <th>
                                        <s:property value="value"/>
                                </th>
                                </s:iterator>
                        </s:iterator>





Justin Frost wrote:
> 
> I want to iterate over the dataColumns to get the "value" from each
> dataColumn.
> 
> I am trying to add S2 to an existing project.  So the Vector code is old,
> circa 2001.
> 
> Thanks for you help.
> 
> 
> 
> newton.dave wrote:
>> 
>> --- Justin Frost <[EMAIL PROTECTED]> wrote:
>>>     private String value;
>>> 
>>>         public String getValue() {
>>>          return value;
>>>         }
>>> I want to use the <s:iterator> tag on "value". 
>> 
>> What? Do you mean you want to iterate over the rows in
>> the report? "value" is a string; nothing to iterate
>> over.
>> 
>> report.headerRow will iterate over each item in the
>> headerRow Vector. (Consider naming it as a plural.)
>> 
>> Then iterate over the dataColumns in each headerRow
>> item, and the value will be visible.
>> 
>> Haven't seen a Vector for awhile.
>> 
>> d.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-S2--Retrieving-values-from-the-valuestack-for-the-%3Cs%3Aiterator%3E-tag-tf4767834.html#a13650450
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to