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 useBean doubt 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 "useBean doubt" Watch "useBean doubt" New topic

useBean doubt

Prasad Shindikar
Ranch Hand

Joined: Feb 18, 2007
Posts: 114
If the �class� and �type� attributes of a useBean tag, do not belong to the same hierarchy, and are used in the same tag; then the code does not compile.

True or false ?

I think the answer is true, but I am a little confused.

Pl. explain.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10031

Yes, it won't compile. This is just java...if you have two different class hierarchy and you do something like this SomeClass obj = new SomeOtherClass (), will result in a compile time error. It is the same thing you have mentioned.

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
I agree. Here's the link:
subject: useBean doubt
jQuery in Action, 3rd edition