Forgot to mention
... but a ClassNotFoundException
Check in any case your classpath
Regards
rachid
-----Message d'origine-----
De : Rachid Moutawakkil [mailto:[EMAIL PROTECTED]]
Envoy� : lundi 23 juillet 2001 17:39
� : Pramod Nair
Objet : RE: Beans within servlets
Why don't u try something like
DaBean b =new DaBean(parameters) ;
b.something() ;
ragards
rachid
-----Message d'origine-----
De : A mailing list for discussion about Sun Microsystem's Java Servlet API
Technology. [mailto:[EMAIL PROTECTED]]De la part de Pramod Nair
Envoy� : lundi 23 juillet 2001 15:05
� : [EMAIL PROTECTED]
Objet : Beans within servlets
I am trying to use a bean from within a servlet that I have created. I try
to instantiate the bean using
Beans.instantiate(null , <BeanName>) , where null specifies the default
class loader ... but a ClassNotFoundException is thrown by the above code.
I suspect it has something to do with the defualt class loader being
invoked. Is there someway I can use the same classloader that loads my
servlets ? ( All this was on an IPlanet Enterprise web server ).
Or am I doing this all wrong ? Maybe beans work only with JSP's ? Could
somebody shed some light on this ?
regards
Pramod Nair.
___________________________________________________________________________
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