wood burning stoves*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HFS&J page 353 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "HFS&J page 353" Watch "HFS&J page 353" New topic
Author

HFS&J page 353

Kamil Wojcik
Ranch Hand

Joined: May 19, 2008
Posts: 78

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?





SCJP 6.0 Passed | SCWCD Passed | PSM in progress...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61064
    
  66

Is com.Person an implementation of List? If not, that would make no sense.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9293
    
  17

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...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HFS&J page 353