I am having a difficult time figuring out a solution to my problem.
I think I will start out with my class structure first. I only put in this
message what I thought was valuable.
public class Report implements java.io.Serializable {
private java.lang.String title = "";
private Vector headerRow = new Vector(); //Vector of ReportRow objects
public Vector getHeaderRow() {
return headerRow;
}
public String getTitle() {
return title;
}
}
public class ReportRow implements java.io.Serializable {
private Vector dataColumns= new Vector(); // Vector of ReportCell
Objects
public Vector getDataColumns() {
return dataColumns;
}
}
public class ReportCell implements java.io.Serializable {
private String value;
public String getValue() {
return value;
}
}
public class ReportAction extends ActionSupport{
private ReportNew report;
public ReportNew getReport() { // This gives me access to "title"
return report;
}
// I need some other getter to retrieve my "value" attribute
// But I am unsure of how to go about it.
}
I want to use the <s:iterator> tag on "value". Something like below.
<s:iterator value="??????????">
<th>
<s:property value="value"/>
</th>
</s:iterator>
I can not figure out what method I need in my Action class to allow the
values to be visible.
Can someone help me out. Or is there a good example out there that I can
reference?
Thanks in advance.
--
View this message in context:
http://www.nabble.com/-S2--Retrieving-values-from-the-valuestack-for-the-%3Cs%3Aiterator%3E-tag-tf4767834.html#a13637580
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]