Hi Scott !

You need to specify the package name also in the class.

i.e <jsp:useBean id="db" scope="request" class="yourPackage.DbBean" />

Regards
Vijay
-----Original Message-----
From: Scott Kumamoto [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 22, 2000 6:29 PM
To: [EMAIL PROTECTED]
Subject: Bean in JSP


Where does the server look for a bean when you do a jsp:useBean?  I have
the following...

<jsp:useBean id="db" scope="request" class="DbBean" />

and it's giving a not found error.  The DbBean.class file is in a
directory that's included in the CLASSPATH when I start the server
(Weblogic 5.1 on Windows.)  Am I doing something wrong?  Does it need to
be in a .jar?

Thanks,
Scott

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to