G
gk
i have put an arraylist in session in my servlet class.
session.setAttribute("list",L);
i want to use this arrayList in my JSP page to display the list items.
i want to use JSTL c:forEach for this purpose.
How do i get the arrayList in JSP page ?
List RetrievedList =(java.util.List)session.getAttribute("list");
should use this code in my JSP before using the c:forEach tag.
otherwise how does my c:forEach gets the list from the servlet ?
session.setAttribute("list",L);
i want to use this arrayList in my JSP page to display the list items.
i want to use JSTL c:forEach for this purpose.
How do i get the arrayList in JSP page ?
List RetrievedList =(java.util.List)session.getAttribute("list");
should use this code in my JSP before using the c:forEach tag.
otherwise how does my c:forEach gets the list from the servlet ?