需要同时导入2个包:

  jstl.jar和standard.jar(大多数时候只会注意到jstl包,而忽视了standard包)

代码:

  c标签的写法

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

  foreach的写法

 <c:forEach items="${applicationScope.map }" var="entry">
    
             写入响应代码

</c:forEach>

 

相关文章:

  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
  • 2022-01-06
猜你喜欢
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2022-12-23
相关资源
相似解决方案