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 and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

                Visit us at http://www.cognizant.com

Reply via email to