I have created a java webapp that reads a custom table (consisting of 13 fields per record) from a SAP backend into a JCoTable in the webapp and this all works fine.
My requirement is to output all the records on the JCoTable onto a JSP using EL. How do I reference each individual field for output purposes? i.e.
<c:forEach items="${claimstable}" var="clms">
${clms.field1}
${clms.field2}
${clms.field3}
</c:forEach>
I have tried using an ArrayList, TreeSet and HashMap to output the table contents on the JSP, using a servlet to forward on the request attribute to the JSP, but I cannot directly access each field, I can only output the contents as one long string.
Do I need to create a class of my table fieldnames and proceed that way? Or what?
Any and all help greatly appreciated.
>` and set your entries into the Object according to your requirements.
– Avinash Raj May 03 '17 at 20:07