Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

useBean doubt

 
Prasad Shindikar
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic