Displaying array values in jsp

后端 未结 3 1431
感动是毒
感动是毒 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:45

    Yes of course you can. You can use scriplets but they are not recommended. Instead use JSTL.

    Try this out:

    Have this at top of your JSP:

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

    And code for displaying data

    
       
          
          
       
    
    

提交回复
热议问题