users@glassfish.java.net

Re: java.util.Vector cannot be cast to entity bean

From: Hassan Schroeder <hassan.schroeder_at_gmail.com>
Date: Sat, 17 Oct 2009 10:34:23 -0700

On Sat, Oct 17, 2009 at 10:27 AM, Eve Pokua <gorgeous65_at_msn.com> wrote:

> //To retrieve all bales
>         public List<Baleent> findAllBales(){

> I used to use the jsp for loop to display data till I changed everything
> into display tag -
>
> <c:forEach items="${baleent}" var="baleent">

So you're clearly getting a List back, and you need to iterate over
that list to display each entry. The above really should use different
terms for the variables, though, e.g.

  <c:forEach items="${allBales}" var="bale">

Whatever the "display tag" does, you still need to iterate over that
collection.

HTH,
-- 
Hassan Schroeder ------------------------ hassan.schroeder_at_gmail.com
twitter: @hassan