• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFS&J page 353

 
Kamil Wojcik
Ranch Hand
Posts: 78
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to understand one thing from the book - page 353 a type attribute in <jsp:useBean>

For example if I have list of persons (class com.Person) and using <jsp:useBean> would it be?




 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is com.Person an implementation of List? If not, that would make no sense.
 
Ankit Garg
Sheriff
Posts: 9519
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The class attribute must have a class which is a subtype of the type attribute. In this case it most probably is not. If you already have a list of Person instances in page scope, then you don't even need the class attribute...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic