%@ page import = "java.util.*"%> <% ArrayList al = new ArrayList(); al.add("This is EL"); al.add("We are using the [] operator"); al.add("It gives you more options than dot(.) operator"); request.setAttribute("al", al); %>
First Value in arraylist is : ${al[0]} |
Second value in arraylist is : ${al["1"]} |
Third value in arraylist is : ${al["2"]} |