This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
You were close. forEach does the magic for you of yanking out the object from the list. You don't have to explicitly tell forEach what object to pull out, since the List would contains only a list of 1 type of object, User. [ September 05, 2006: Message edited by: Gregg Bolinger ]
hi, Gregg , thanks for reply, this is my real code for testing when i use the following test code in jsp
it able to show the result out
however, it give me error while happen in foreach
the error is "SEVERE: ServletException in '/pages/topheader.jsp': Unable to find a value for " top_menu_name" in object of class "java.lang.String" using operator "." javax.servlet.ServletException: Unable to find a value for "top_menu_name" in object of class "java.lang.String" using operator ".""