Displaying array values in jsp

后端 未结 3 1468
感动是毒
感动是毒 2021-01-14 17:34

I have following two array in my code

List centralityList = (List) request
            .getAttribute(\"centralityList\");

List&l         


        
3条回答
  •  长情又很酷
    2021-01-14 17:54

    You can use JSTL tags and iterate through this-

    
    
             // do something with the element
    
    

    Use this in your jsp page

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

提交回复
热议问题