I’ve to create a dynamic html table using the values configured in a table. I’m using JSP with MVC architecture.
I’ve a row number, column number and value fields in table. If the values are 1,5 and HELLO correspondingly, then I’ve to display this HELLO in row 1 and column 5.
The table structure is like the following.
row column value
1 5 value1
2 8 value2
Any ideas?
You need to collect the data in a
String[][]first:(note that array indexes are zero based, you may want to substract 1 from
rowandcolfirst)Then display it using JSTL
c:forEach(or any data iterating tag your “MVC architecture” thing is using) in JSP: