try {
    MyBean myBean = (MyBean)
Beans.instantiate(this.getClass().getClassLoader(), "MyBean");
} catch (Exception exc) {
    etc etc
}
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Rohit
Dhiman
Sent: 11 July 2001 16:28
To: [EMAIL PROTECTED]
Subject: Instantiate a bean in a servlet
Importance: High


Dear all,

can anybody tell me how to instantiate a bean in a servlet.I have made some
java bean classes and i want to use the methods of these bean classes inside
my servlet which further connects to a database using JDBC.


thanks

Rohit

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to