File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "HFS&J page 353" Watch "HFS&J page 353" New topic

HFS&J page 353

Kamil Wojcik
Ranch Hand

Joined: May 19, 2008
Posts: 78


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

Joined: Jan 10, 2002
Posts: 63837

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

[Asking smart questions] [About Bear] [Books by Bear]
Ankit Garg

Joined: Aug 03, 2008
Posts: 9462

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:
subject: HFS&J page 353
jQuery in Action, 3rd edition