<%
request.setAttribute("names", new ArrayList().add("ABC"));
out.println(request.getAttribute("names")); // It should print arraylist object. But it prints true. Can you anyone help me?
%>
getAttribute() should return either Object or null.
The array list values are been hold by object so when ever you call the object directly it will show Boolean value alone. what you have to do is keep an iterator and retrieve the values from the array list