Not sure if it will help, but maybe trying:
dataBean = (com.foo.MyBean)Class.forName("com.foo.MyBean").newInstance();
Works for me so far anyway... of course making sure your CLASSPATH includes
the necessary classes.
Regards,
Joe.
--
Joe Shevland
Turnaround Solutions Pty. Ltd.
mailto:[EMAIL PROTECTED]
http://www.TurnAround.com.au
Ph: +61-03-6224-9146
Fax: +61-03-6223-2556
::-----Original Message-----
::From: A mailing list about Java Server Pages specification and reference
::[mailto:[EMAIL PROTECTED]]On Behalf Of Rey Antonio
::Sent: Tuesday, March 16, 1999 6:37 AM
::To: [EMAIL PROTECTED]
::Subject: Problems trying model 2
::
::
::Hello,
::
::I am trying to program model 2, but I got an error when I try to do the
::following:
::
:: Bank dataBean;
:: try{
:: dataBean = (Bank)
::Beans.instantiate(this.getClass().getClassLoader(),"Bank");
:: }
:: catch (Exception ex){
:: throw new ServletException("ha habido un Error " +
::ex.getMessage());
:: }
::
::ex.getMessage() just says null, so it doesn't help too much
::
::I'd really appreciate any help,
::
::Thanks,
::
:: Antonio.
::
::==================================================================
::=========
::To unsubscribe, send email to [EMAIL PROTECTED] and include
::in the body
::of the message "signoff JSP-INTEREST". For general help, send email to
::[EMAIL PROTECTED] and include in the body of the message "help".
::
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".