I have an arraylist of objects in my servlet where I want to call it in my jsp file. I'm not sure how to go about doing this.
inside my servlet I have:
public ArrayList <Song> searchedSongs = new ArrayList <Song> ();
where the object is a Song.java file. Inside my jsp file I have:
<strong style="color: #ff9642;">CART:</strong><br/>
<% ArrayList<Song> results = (ArrayList<Song>) session.getAttribute("results"); %>
<% out.print(results.size()); %> items
I am getting an error saying my Song cannot be resolved