I have my code like this
ResourceDetailsBean.java
public String empName;
public String empCode;
public LinkedHashMap<String, List<ResourceBandBean>> backFillPlanGAP;
ResourceBandBean.java
private String band;
private String name;
At the end of my code, generating a list of first bean type.
My Action class and DAO Logic is correct. Can someone please guide me how to display it on JSP.
I am using something like this..
<table><thead>
<th>Emp Name</th>
<th>Code</th>
<th>band1</th>
<th>band2</th> <!--These bands are same as String Key in LinkedHashMap, Number of keys will be equal to number of band header -->
<th>band3</th></thead>
<tbody>
<s:iterator value="resourceList">
<tr>
<td><s:property value="empName"/> </td>
<td><s:property value="empCode"/> </td>
<s:iterator value="backFillPlanGAP" status="stat">
<td><s:property value="#backFillPlanGAP[1]"/></td>
</s:iterator>
</tr></tbody>
backFillPlanGAP is the name of LinkedHashMap.
How to display these value in a proper tabular format?
Kindly guide me, I am not able to parse them. Let me know if clarification needed on any part.