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.
As far as I know I can't use the JCoTable directly to forward to jsp and have to map it to something else but I'm open to correction on that.
I have tried using an ArrayList<String>, 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 an object of my table fieldnames (ArrayList<customtable>) and proceed that way? Or what?
I can however access each field using a POJO with so do I need to create an EL function for each table field and use them on my jsp to do the same?
In the first fragment you create an array and put data into its elements. Does your code go on to use that array for anything? If not, then don't create it. (I guess you'd put that under "best use of resources".)