aspose file tools*
The moose likes JSP and the fly likes error: The value for the useBean class attribute java.util.List is invalid Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "error: The value for the useBean class attribute java.util.List is invalid" Watch "error: The value for the useBean class attribute java.util.List is invalid" New topic
Author

error: The value for the useBean class attribute java.util.List is invalid

Sean Stephens
Ranch Hand

Joined: Oct 25, 2004
Posts: 40
Hey folks. Hoping you can give me an idea why I'm getting this error.

I've got a List put in the session and I'm trying to retrieve it with a useBean tag for use on the jsp page, but I get the above error.

Is there something that prevents useBean from using an interface for the class attribute? I ask because everything works if I test with an ArrayList instead, but the API I'm using provides a List...

Thanks for any insight,
Sean
Sean Stephens
Ranch Hand

Joined: Oct 25, 2004
Posts: 40
Got the answer. JavaBeans have to be instanciable - so interfaces are right out as a useBean class attribute. Makes sense now that I think about it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error: The value for the useBean class attribute java.util.List is invalid
 
Similar Threads
usebean
HFS: ambiguity in coffee cram ?
value for useBean class is invalid
usebean query
useBean and class inheritance