Kervin Pierre wrote:
> 
> Hello,
> 
> I can't seem to get this to work. The bean compiles OK but when I try to
> load it, I get a "Error: 500" below saying that my package couldn't be
> loaded.
> 
> ...
> org.apache.jasper.JasperException: Unable to compile class for
> 
>JSP/usr/local/jakarta/build/tomcat/work/localhost_8080/_0002fnetworkdb_0002findex_0002ejspindex_jsp_0.java:15:
> Package edu.fit.eng.networkdb.sqlConnObj not found in import.
> import edu.fit.eng.networkdb.sqlConnObj.*;
> ...
> 
> My jsp page begins like this
> 
> <%@ page language="java" import="edu.fit.eng.networkdb.sqlConnObj.*"%>
> <jsp:useBean id="connBean" class="sqlConnBean" scope="page" />

When you name your class in the useBean tag you MUST use the 
complete package - it doesn't matter that you imported the package


-- 
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to