Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Sean Stephens
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic