Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp:useBean question

 
Timber Lee
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
does
<jsp:useBean class="com.bookstore.Book" type="java.lang.Object" id="book" />
mean
java.lang.Object obj = (java.lang.Object) new Book();
?
how about that its class is superclass to its type
 
k space
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<jsp:useBean class="com.bookstore.Book" type="java.lang.Object" id="book" />
means
java.lang.Object book = new com.bookstore.Book();
i.e. type id = new class();
Therefore, type can be an interface that class implements, or a superclass of class.
[ October 27, 2002: Message edited by: ks wong ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic