The difference between a class and an interface. Or a superclass. In
if you say in the JSP that the "type" is ActionListener you can only use the methods defined in that interface. If you don't say "type" and just class, then you can use all the methods of the class, in the object. Also, the same applies to class/superclass relationships. You may have a subclass X but use "type" of its superclass. I have never needed to use the "type"... Anyone? [This message has been edited by Tony Alicea (edited March 05, 2001).]
Tony Alicea Senior Java Web Application Developer, SCPJ2, SCWCD
The type attribute allows you to do a class cast on a class or beanName. Only upcasts (casts to a superclass or an interface implemented by class) are allowed. The type attribute can be used by itself (i.e., without beanName or class) if the id attribute specifies a bean that is already instantiated. Otherwise, the type attribute must be used to do a class cast on a beanName or class specified in the same tag.
Scott Stirling<BR>Author of <A HREF="http://www.amazon.com/exec/obidos/ASIN/067231939X/ref=ase_electricporkchop/107-2476442-4883722" TARGET=_blank rel="nofollow">Java Server Pages Application Development</A>
This looks like a job for .... legal tender! It says so right in this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth