this is inside my servlet:
ArrayList<String> currentCustomer = model.getAllCustomers();
req.setAttribute("currentCustomer", currentCustomer );
how do i access this arraylist in my JSP file? I eventually wanna loop over each string element.
this is inside my servlet:
ArrayList<String> currentCustomer = model.getAllCustomers();
req.setAttribute("currentCustomer", currentCustomer );
how do i access this arraylist in my JSP file? I eventually wanna loop over each string element.
oho! guys, i solved my problem. it had to do with importing the wrong header.
i was writing this on the header:
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
while it should have been
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.