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
<jsp:useBean class="com.bookstore.Book" type="java.lang.Object" id="book" /> means java.lang.Object book = new com.bookstore.Book(); i.e. typeid = new class(); Therefore, type can be an interface that class implements, or a superclass of class. [ October 27, 2002: Message edited by: ks wong ]