I'm trying to build a simple webpage that accesses a database and does some operations on it. I want to allow the user to insert new rows into the tables, but I want to use only one type of insert.jsp that accesses some session information about which table to modify. I want to be able to create different sizes forms as well as access each column without hardcodding the names of each column. Is this possible? Ej.
<c:forEach var="row" items="${table.rows}">
<tr>
<td>${row.id_worker}</td>
<td>${row.name_worker}</td>
<td>${row.iban_worker}</td>
</tr>
</c:forEach>`
This loops through table and displays each element, but I have to code the name of each element. I want something like:
<c:forEach var="row" items="${table.rows}">
<tr>
<c:forEach ""ELEMENT IN ROW"">
<td>${row.element}</td>
</tr>
</c:forEach>`
And also I want to be able to access said name to change it using a form