I am trying to access the object from a list of objects using JSP & JSTL without any success. I'm using JPA.
Now, in the JSP page
The output is printed when I do b1 but its 1 line with all the track names. However the 2nd output i.e. b1.track when used gives error saying it can't find 'track'. I want to display the track and the corresponding album name in a tabular format. How do I access the track or album variable in the for each loop of JSTL. I guess the problem is with the way JPA query puts the result into the list.
This is from the glassfish server output window. (I am using NetBeans IDE to develop the project)
The error says that there is no method in the list with the name 'track' I even tried using the get property as .getTrack() without any luck. However I'm populating the bRListM (which is list of Record objects) as shown previously in the DvdRecord.java class. I'm not sure but i think the way JPA query is inserting into the list is not proper. Any feedback would be appreciated.