-1

I have to create a diagram using Jsp's and Servlets just like the image. How can I do that? I mean, what logic could I use?

diagram

1 Answers1

0

jsp file can be created through a table. And using a servlet to send data.

<!DOCTYPE html>
<html>
<body>

<table style="width:100%" border="1">
  <tr>
    <th>${Firstname}</th><th>${Lastname}</th><th>${Age}</th>
  </tr>

<c:forEach items="${empList}" var="employee">
  <tr>
    <td><c:out value="${employee.eid}"/></td>
    <td><c:out value="${employee.ename}"/></td> 
    <td><c:out value="${employee.other}"/></td> 
  </tr>
</c:forEach>

</table>

</body>
</html>

Iterate over elements of List and Map using JSTL tag

Iterating through a List Object in JSP