----- Original Message -----
From: "fergal dalton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 03, 2002 08:14
Subject: query


>
> Hi,
>
> Just a small problem, i'm having a problem using the useBean tags in my
jsp
> page, i am trying to pass an arraylist from the model but i get the
> following error.
>
> <jsp:useBean id="sidebarObjects" scope="request"
class="java.util.Iterator"
> />
>
> Internal Servlet Error:
>
> javax.servlet.ServletException:  Cannot create bean of class
> java.util.Iterator

Fergal, java.util.Iterator is an Interface which cannot be instantiated.

You have to instantiate one of the concrete implementations of the
Collections classes to get an instance of this from the object.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to