This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
No .. it doesn't look correct ... a couple questions ...
1. What does MovieListing.getList() return? a java.util.ArrayList of Strings, a java.util.ArrayList of MovieBeans or something else?
2. It looks like your JSP code places an ArrayList of MovieBean into scope and the toString() method of MovieBean prints what you want when you iterate using forEach. Is this what you want?
3. What do you want the Java code to do?
kf
SCJP 5.0 (preparing for SCWCD)
Dan Parsons
Ranch Hand
Joined: May 30, 2007
Posts: 70
posted
0
Keith Flo wrote:Dan,
No .. it doesn't look correct ... a couple questions ...
1. What does MovieListing.getList() return? a java.util.ArrayList of Strings, a java.util.ArrayList of MovieBeans or something else?
2. It looks like your JSP code places an ArrayList of MovieBean into scope and the toString() method of MovieBean prints what you want when you iterate using forEach. Is this what you want?
3. What do you want the Java code to do?
Its not working and seems to print all the records per array.
Its suppose to print a Java java.util.ArrayList of MovieBeans.