In an Action.java file, am using the following piece of code.
request.setAttribute("TAREWEIGHT", tareWeightList);
request.setAttribute("BARCODE", barcodeList);
return (mapping.findForward(target));
tareWeightList & barcodeList actually holds few values. After setting the list values to the attributes, the java file forwards the contents to a JSP file.
There in JSP file, I can get the contents using below lines,
<%=request.getAttribute("TAREWEIGHT")%>
<%=request.getAttribute("BARCODE") %>
My requirement is that the contents of that lists should be diplayed in a tabular format.
Barcode values in first column and its corresponding Tareweight values in the second column.
Suggest me an idea for writing the code in JSP file so as the contents are displayed in a tabulated format.