Hi Ramesh, Whats the doubt. Yes it will create a bean if you just give the beanName(which is actually class name). You check what are the other mendatory attributes for creating a bean. type is optional I think.
Regds Ashwani "Kesavanarayanan, Ramesh To: [EMAIL PROTECTED] (Cognizant)" cc: (bcc: ashwani.kalra/Polaris) <[EMAIL PROTECTED] Subject: off topic IZANT.COM> Sent by: A mailing list for Enterprise JavaBeans development <[EMAIL PROTECTED] A.SUN.COM> 03/26/2003 05:29 PM Please respond to "Kesavanarayanan, Ramesh (Cognizant)" Hi all, sorry for this offtopic question but i have a major doubt in the <jsp:useBean> giving beanName will create an instance of the class or not. I know that if you give classattribute, then you get a new instance. If anyone can throw light on this , would appreciate it. class="package.class" type="package.class" Instantiates a Bean from a class, using the new keyword and the class constructor, and gives the Bean the type you specify in type. The class you specify in class must not be abstract and must have a public, no-argument constructor. The package and class names you use with both class and type are case sensitive. The value of type can be the same as class, a superclass of class, or an interface implemented by class. beanName="{ package.class | <%= expression %> }" type="package.class" Instantiates a Bean from either a class or a serialized template, using the java.beans.Beans.instantiate method, and gives the Bean the type specified in type. Beans.instantiate checks whether a name represents a class or a serialized template. If the Bean is a serialized template, Beans.instantiate reads the serialized form (with a name like package.class.ser) using a class loader. For more information, see the JavaBeans API Specification. The value of beanName is either a package and class name or an Expression <syntaxref10.fm4.html> that evaluates to a package and class name, and is passed to Beans.instantiate. The value of type is a package and class name. The value of type can be the same as beanName, a superclass of beanName, or an interface implemented by beanName. With both beanName and type, the package and class names are case sensitive. Regards Ramesh Kesavanarayanan [EMAIL PROTECTED]
This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited. Visit Us at http://www.polaris.co.in