Hi I am unable to display data from controller to jsp page in spring, am new to spring, this is my controller
List<DocDto> list =DocService.getDocs();
DocDto docList = new DocDto();
docList.setdocType(doc_type);
docList.setdocSubType(doc_subtype);
jobList.setTransactionId(transaction_id);
model.addAttribute("docList", docList);
This is my jsp table
<c:forEach var="o" items="${list}">
<tr>
<td>
<c:out value="${o.doc_type}" /></td>
<td><c:out value="${o.doc_subtype}" /></td>
</td>
</tr>
This is not displaying any data in my jsp, just simply blank table it is displaying. Any help would be appreciated.