【问题标题】:Create Diagram using servlets e Jsp's使用 servlet e Jsp 创建图表
【发布时间】:2018-06-19 11:39:43
【问题描述】:

我必须像图像一样使用 Jsp 和 Servlet 创建一个图表。 我怎样才能做到这一点?我的意思是,我可以使用什么逻辑?

diagram

【问题讨论】:

  • 对于这种复杂的图表,可以使用D3类库。

标签: java jquery jsp servlets


【解决方案1】:

jsp文件可以通过表来创建。并使用 servlet 发送数据。

<!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

【讨论】:

    猜你喜欢
    • 2018-02-02
    • 2014-09-29
    • 1970-01-01
    • 1970-01-01
    • 2016-12-26
    • 1970-01-01
    • 2014-03-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多