how to Use in scripts tag on JSP page?

后端 未结 1 1943
挽巷
挽巷 2020-12-18 21:37

Hey How to use loop in tag in jsp page?

i want to use JSTL data to pass in data tables

my code is like :

        $(document).ready         


        
1条回答
  •  感情败类
    2020-12-18 22:20

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

    This would produce following result:

    NAME 1
    NAME 2
    NAME 3
    NAME 4
    NAME 5
    

    Above is simplest example.. following is with items var

    
            
              
                
              
              
                
              
            
            
    ${student.name} ${student.age} ${student.height}

    this way you can use the TAG..

    If you have any specific problem then please explain

    0 讨论(0)
提交回复
热议问题