Wendy wrote:

> Did you add/change the import directive in the JSP? 

Yes.

<%@ page language="java" import="com.stevensons.*" %>

<jsp:useBean id="fruitItem" class="Fruit" scope="page">
        <jsp:setProperty name="fruitItem" property="*"/>

Etc.,

 Perhaps 
> we'd better
> start over.
> 
> You've added the package statement to Fruit.java, correct?  Then you
> need to compile it, and place it in 
> WEB-INF/classes/com/stevensons .  

Yes, and it is that location.

If
> all that is done, please post the JSP code that Tomcat is complaining
> about.
> 
Exception

org.apache.jasper.JasperException: Cannot create bean of class Fruit
        at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)

(etc)

and

Root cause

javax.servlet.ServletException: Cannot create bean of class Fruit
        at org.apache.jsp.addToCatalog_jsp._jspService(addToCatalog_jsp.java:52)

(etc)

Thanks,
 

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

Reply via email to