This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
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: 63208
    
  69

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: 9404
    
  20

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: HFS&J page 353
 
It's not a secret anymore!