I have to display data fetched from DB to JSP. I am using spring MVC. I have stored data in List in java. Now i need to access this list in JSP and display it in tabular form.
Data needs to represented in tabular form from List and VO, column names and row names coming from List and corresponding values for row/column from object.
e.g
Column1 Column2 Column3 Column4
Row1 A B C D
Row2 E F G H
How can i pass this List and Object in jsp from java.
Thanks
解决方案
Process it on servlet and store it in 2D array of String or List>
Set it as attribute to request, forward request to jsp.
on jsp use JSTL to represent data. using