Originally posted by geetu lalchandani:
is this valid???
<jsp:useBean id="softDrink" beanName="Drink.ser" type="com.baboon.interface.Drink" />
have never seen something like this before.
Ya it is perfectly valid. You might be confused by
beanName="Drink.ser" - it indicates that look Drink.ser file and desterilize object from it.
**************
beanName="{package.class | <%= expression %>}" type="package.class"
Instantiates a bean from a class, a serialized template, or an expression that evaluates to a class or serialized template. When you use beanName, the bean is instantiated by the java.beans.Beans.instantiate method. The Beans.instantiate method checks whether the package and class you specify represents a class or a serialized template. If they represent a serialized template, Beans.instantiate reads the serialized form (which has a name like package.class.ser) using a class loader.
source **************
[ September 14, 2006: Message edited by: Chetan Parekh ]