This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: error: The value for the useBean class attribute java.util.List is invalid
 
Similar Threads
useBean and class inheritance
value for useBean class is invalid
HFS: ambiguity in coffee cram ?
usebean query
usebean