Two Laptop Bag*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "useBean doubt" Watch "useBean doubt" New topic
Author

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: 9243
    
    1

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, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: useBean doubt
 
Similar Threads
a qstn
Jsp and javabean
WSAD5.1 to RAD7 migration
use of scope in useBean tag and session in page tag
Redirection after session Timeout.